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

Issue #654 retaining dragPan state for simple_select, direct_select, and setup #694

Closed
wants to merge 3 commits into from

Conversation

holyblader2010
Copy link
Contributor

No description provided.

@holyblader2010 holyblader2010 changed the title #654 retaining dragPan state for simple_select, direct_select, and setup Issue #654 retaining dragPan state for simple_select, direct_select, and setup Oct 4, 2017
@holyblader2010
Copy link
Contributor Author

Looks like mapbox-gl-js-mock is missing the dragPan.isEnabled function.
I suppose this will require some unrelated updates to pass the automated tests.

@mcwhittemore
Copy link
Contributor

Yea... I wish we did mocking better here.

@alexgleith
Copy link
Contributor

I think this may be resolved in my past PR. #696

@mcwhittemore
Copy link
Contributor

Unless im mistaken, this has been covered by #696. Please reopen if I'm wrong.

@caiusCitiriga
Copy link

Hi, sorry to reopen this, but it seems that the bug is still present on my Angular10 project. I've checked and the @mapbox/mapbox-gl-draw version is set to ^1.2.0 so it's to the latest one, but when I disable the dragPan on my map, the first interaction is prevented, but then if you immediately try to drag the map again the map can drag.

Also an error is reported in the console:

Unable to preventDefault inside passive event listener invocation.

![Screenshot 2020-08-07 at 11 58 54](https://user-images.githubusercontent.com/12595721/89634310-74dc0080-d8a5-11ea-9a0b-b4483c5559d0.png

Can somebody please help me? I'm stuck on this and I need to keep the map still while the user draws the polygon 😢

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