[OpenLayers-Users] Javascript Error - ScrollWheel disabled - IE
- scroll on map
Roald de Wit
roald.dewit at lisasoft.com
Mon Feb 2 23:22:33 EST 2009
Hi David,
Coincidentally, today I bumped into the same problem as you describe
below. Did you manage to find a solution or did you stick to the
workaround with the try-catch construction?
Do you feel like creating an issue in Trac [1] (with a simplified
example that can reproduce the error)?
Kind regards,
Roald
[1] http://trac.openlayers.org/wiki/FilingTickets
On Mon, 2008-12-22 at 11:50 +1030, David Martin wrote:
> 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 and www.itbeyond.com.au
>
>
> ______________________________________________________________________
--
Roald de Wit
Software Engineer
roald.dewit at lisasoft.com
Commercial Support for Open Source GIS Software
http://lisasoft.com/LISAsoft/SupportedProducts/
The contents of this email are confidential and may be subject to legal or professional privilege and copyright. No representation is made that this email is free of viruses or other defects. If you have received this communication in error, you may not copy or distribute any part of it or otherwise disclose its contents to anyone. Please advise the sender of your incorrect receipt of this correspondence.
More information about the Users
mailing list