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

Unexpected behavior first time calling map.dragPan.disable() inside mousedown handler #2713

Closed
samanpwbb opened this issue Jun 10, 2016 · 2 comments
Labels

Comments

@samanpwbb
Copy link
Contributor

samanpwbb commented Jun 10, 2016

mapbox-gl-js version: 0.19.1

Steps to Trigger Behavior

  1. Call map.dragPan.disable() inside map.on(mousedown, ...) event handler.
  2. Click + drag the map

Js fiddle here: https://jsfiddle.net/mzvhkLvs/

Expected Behavior

Map doesn't drag.

Actual Behavior

Map drags, but only the first time.

@kristfal
Copy link

Hey, this is a dupe of #2419. There is a workaround in that bug-report as well.

@mourner
Copy link
Member

mourner commented Jun 10, 2016

@kristfal you're right, thanks for noting this! Closing as duplicate.

@mourner mourner closed this as completed Jun 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants