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

fixed issue "Marker element click event throws: Uncaught TypeError..." #8049

Closed
wants to merge 2 commits into from

Conversation

ParryQiu
Copy link

fixed if marker click is triggered programatically, throw the exception.
#7864

  • briefly describe the changes in this PR

fixed if marker click is triggered programatically, throw the exception.
mapbox#7864
@cs09g
Copy link
Contributor

cs09g commented Mar 18, 2019

@ParryQiu You should follow the code convention, fix your code and try to build on your local environment.

@ParryQiu ParryQiu changed the title fixed issue #7864 fixed issue "Marker element click event throws: Uncaught TypeError..." Mar 18, 2019
Copy link
Member

@mourner mourner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately Event.isTrusted is not supported in Safari (both desktop and mobile) and IE11. We'll have to come up with a fix that works cross-platform.

@msbarry
Copy link
Contributor

msbarry commented Mar 18, 2019

You might also want a simple check for if startPos is defined, if not then just treat as a click and skip the proximity check.

@mourner
Copy link
Member

mourner commented Jul 11, 2019

Closing in favor of #8462.

@mourner mourner closed this Jul 11, 2019
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.

4 participants