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

Map keeps rotating on mouse move after mouseup outside map control #4411

Closed
jaapster opened this issue Mar 13, 2017 · 2 comments
Closed

Map keeps rotating on mouse move after mouseup outside map control #4411

jaapster opened this issue Mar 13, 2017 · 2 comments

Comments

@jaapster
Copy link

jaapster commented Mar 13, 2017

Mapbox GL version 0.33.1

Steps to Trigger Behavior

  1. Go to the Mapbox GL example 'Display a map'
  2. Rotate the map using the ctrl-key
  3. While keeping de mouse button and the ctrl-key down, move the mouse out of the map control element
  4. Release the mouse button and the ctrl-key

Expected Behavior

The map does not rotate anymore when the mouse is moved over the map

Actual Behavior

The map is still rotating when the mouse is moved over the map

@anandthakker
Copy link
Contributor

Thanks for reporting this issue @jaapster!

I believe that the reason it's happening on that page is that the example is actually embedded via an iframe element, so that the mouseup event does not make it to the HTML document containing the map.

Closing this issue for now, but if I'm mistaken and you're seeing this in a non-iframe context, please reopen the issue!

@andrewharvey
Copy link
Collaborator

@jaapster Would you be able to test #4390 to confirm that fixes your scenario?

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

3 participants