[OpenLayers-Trac] [OpenLayers] #735: A Console error with the combo MouseToolbar, a Google Layer and using a mouse with wheel.
OpenLayers
trac at openlayers.org
Wed Jun 13 10:53:11 EDT 2007
#735: A Console error with the combo MouseToolbar, a Google Layer and using a
mouse with wheel.
-----------------------------------+----------------------------------------
Reporter: penyaskito | Owner:
Type: feature | Status: new
Priority: minor | Milestone:
Component: Control.MouseToolbar | Version: SVN
Resolution: | Keywords:
-----------------------------------+----------------------------------------
Comment (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 :)
}}}
--
Ticket URL: <http://trac.openlayers.org/ticket/735#comment:1>
OpenLayers <http://openlayers.org/>
A free AJAX map viewer
More information about the Trac
mailing list