Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid "Window.getComputedStyle does not implement interface Element" exception in Firefox #1425

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ejn
Copy link
Contributor

@ejn ejn commented Jan 16, 2015

In Firefox an exception "Window.getComputedStyle does not implement interface Element" was being raised when the MouseWheel event was outside the map, due to the traverse up the tree winding up at the document object (which naturally doesn't implement the Element interface!).

This error was swallowed in the try-catch block and so did not bubble up to the user, but trying to use Firebug and stop on all errors then it becomes noticeable.

No changes required in the test-suite (which passes!).

In Firefox an error "does not implement interface Element" was
being raised when the MouseWheel event was outside the map, due
to the traverse up the tree winding up at the document element.

This error was caught in the try-catch block and so did not
bubble up to the user, but trying to use Firebug and stop on
all errors then it caused some irritation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant