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

Fix resize event.target bug in Firefox #35

Open
davekinkead opened this issue Mar 31, 2020 · 2 comments
Open

Fix resize event.target bug in Firefox #35

davekinkead opened this issue Mar 31, 2020 · 2 comments

Comments

@davekinkead
Copy link
Owner

The resize event is attached to window and on scroll, the event.target is the map canvas in Chrome & Safari but resolves to the canvas' parent (mapper.DOM) in Firefox. This means the zoom function doesn't work because return

Any ideas why this is happening @geoffreyd ? should be a very easy fix but I'm stumped!

@geoffreyd
Copy link
Contributor

@davekinkead is there a specific test page this is happening on? I've tried the code both before and after the fixes you put in, but my firefox is always returning the canvas element.

@davekinkead
Copy link
Owner Author

hi @geoffreyd hope all is well ... crazy times here so will get back to you when I can.

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

No branches or pull requests

2 participants