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

rotate and pitch events are fired at the same time #8842

Closed
cs09g opened this issue Oct 8, 2019 · 2 comments · Fixed by #8872
Closed

rotate and pitch events are fired at the same time #8842

cs09g opened this issue Oct 8, 2019 · 2 comments · Fixed by #8872
Labels

Comments

@cs09g
Copy link
Contributor

cs09g commented Oct 8, 2019

When pitch and rotate events' added on the map, rotating the map triggers the pitch event fired.

mapbox-gl-js version:
1.4.0

browser:
Chrome 77.0.3865.90

Steps to Trigger Behavior

  1. add pitch event on the map.
  2. add rotate event on the map.
  3. rotate the map.

Link to Demonstration

https://jsfiddle.net/cs09g/9wb6unqt/

Expected Behavior

pitch event should not be fired.

Actual Behavior

pitch and rotate events are fired at the same time.

@mourner
Copy link
Member

mourner commented Oct 8, 2019

Thanks for the report! Confirmed as a bug. Want to submit a PR with a fix?

@cs09g
Copy link
Contributor Author

cs09g commented Oct 11, 2019

I'll try to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants