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

Draw should not interfere with dragPan.disable() #1216

Merged
merged 6 commits into from
Jul 1, 2024

Conversation

itoxiq
Copy link
Contributor

@itoxiq itoxiq commented Mar 14, 2024

Continuation of #1191

The issue is that Draw assumes that dragPan is enabled and simply enables it without question after certain operations (when dragpan is temporarily disabled). This change would set a variable called initialDragPanState and only re-enables when it was originally enabled.

@itoxiq
Copy link
Contributor Author

itoxiq commented May 7, 2024

@stepankuzmin PTAL :D

axekan added a commit to axekan/mapbox-gl-draw that referenced this pull request Jun 24, 2024
@stepankuzmin stepankuzmin requested a review from a team as a code owner June 28, 2024 15:41
Copy link
Contributor

@stepankuzmin stepankuzmin left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks for the contribution @itoxiq 👍

@stepankuzmin stepankuzmin merged commit 3802950 into mapbox:main Jul 1, 2024
2 checks passed
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.

3 participants