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

include MouseEvents polyfill to allow map rotation via compass button on IE11 #4843

Closed
wants to merge 1 commit into from

Conversation

andrewharvey
Copy link
Collaborator

@andrewharvey andrewharvey commented Jun 16, 2017

Closes #4784

Launch Checklist

  • briefly describe the changes in this PR
    This PR include a MouseEvents polyfill to fix Navigation Control compass click event IE 11 throws: Object doesn't support this action #4784. What's the feeling towards using polyfills in GL JS to maintain support for older browsers?

  • write tests for all new functionality
    This change seems to break a whole lot of tests, I can look into that once I get feedback on if this approach will be accepted or not.

  • document any changes to public APIs

  • post benchmark scores

  • manually test the debug page
    tested before and after on IE11.

@jfirebaugh
Copy link
Contributor

What's the feeling towards using polyfills in GL JS to maintain support for older browsers?

If the dependency is minimal, it can be ok to use local conditionals like const MouseEvent = window.MouseEvent || require('mouse-event');, but GL JS shouldn't modify any globals, as that could introduce conflicts with polyfills an application using GL JS wants to install.

@andrewharvey
Copy link
Collaborator Author

sorry I haven't had the time to work on this, good to see progress in #5157

@andrewharvey andrewharvey deleted the 4784-mouse-event-polyfill branch August 24, 2017 00:28
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.

Navigation Control compass click event IE 11 throws: Object doesn't support this action
2 participants