OpenLayers OpenLayers

Ticket #735 (closed feature: fixed)

Opened 1 year ago

Last modified 9 months ago

A Console error with the combo MouseToolbar, a Google Layer and using a mouse with wheel.

Reported by: penyaskito Assigned to:
Priority: minor Milestone: 2.5 Release
Component: Control.MouseToolbar Version: SVN
Keywords: Cc:
State:

Description

When using the wheel of your mouse with the MouseToolbar and a Google Layer, it appears an error in the javascript console of your browser. Use the NavToolbar instead.

Change History

06/13/07 10:53:11 changed by euzuro

additional info/bug report from domenico F from an email to the dev list:

I've found a possible bug, using examples/custom-control.html page and also using the OpenLayers Home page.
FireBug error console said this:
"evt.xy has no properties
./Control/Navigation.js
Line 67"

To reproduce this error try the following steps:
1) move mouse pointer into the map.
2) refresh web page (with F5 or Ctrl+F5) and take care to don't move the mouse.
3) when the page is again ready try to scroll the wheelMouse (without moving the mouse!), now the error occur.

The bad thing is that: if you don't move the mouse you don't have mouse position when fire wheel.

The bug is located in MouseWheel.js on line 88:
"e.xy = this.mousePosition;"
because this.mousePosition is "null" on start up.

This is a Mozilla Bug.

A trivial work around is to disable wheel event
in MouseWheel.js on line 84 with this substitution:

"-             if (delta) {"
"+            if (delta && this.mousePosition) {"

The very very strange thing is an analogous bug in GMaps :)

10/10/07 00:52:10 changed by crschmidt

  • status changed from new to closed.
  • resolution set to fixed.
  • milestone set to 2.5 Release.

This was fixed in 2.5.