[OpenLayers-Users] Javascript Error - ScrollWheel disabled - IE -
scroll on map
David Martin
David at itbeyond.com.au
Sun Dec 21 20:20:20 EST 2008
I have been having an on-going problem with OL (using 2.7 and same in
the trunk). The issue seems to only occur when using IE. If you disable
the zoomWheel in the Navigation control and then load a Control.Click
with an event script to capture clicks and mouse positions in a map.
Show this map in IE and then scroll with the wheel over the map panel
itself the browser throws a this.element.scrolls is null or not an
object.
I looked at the event script and I believe that during the
getMousePosition function the evt is being destroyed with the
this.clearMouseCache event (caused be scrolling using the wheel over the
map). I know I am close because I wrapped the whole getMousePosition
function is a try { { catch{} and the error has gone away. I would debug
it further however I cannot use Firebug in IE as I do in Firefox. I also
find that IE does not launch my debuggers correctly in this instance.
I know it is killing the event (this) because if I comment out the
this.element.scrolls section lines 777 - 783 the error is reported then
against the this.element.lefttop. Is there a better solution?
Regards
David Martin
Managing Director
I.T. Beyond Pty Ltd
Postal:
PO BOX 967
HILLARYS WA 6923
Ph:
(08) 9403 3737
Mobile:
0417 677 275
Fax:
(08) 9403 3738
Skype:
itbeyond_david
________________________________
Check out our websites: www.ExplorOz.com <http://www.exploroz.com/> and
www.itbeyond.com.au <http://www.itbeyond.com.au/>
________________________________
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20081222/1faaacb1/attachment.html
More information about the Users
mailing list