Skip to content

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

Merged
stepankuzmin merged 6 commits intomapbox:mainfrom
itoxiq:master
Jul 1, 2024
Merged

Draw should not interfere with dragPan.disable() #1216
stepankuzmin merged 6 commits intomapbox:mainfrom
itoxiq:master

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 👍

@fede-qubika
Copy link

fede-qubika commented Dec 18, 2024

@itoxiq @stepankuzmin hey guys, after clicking the same feature multiple times without moving the mouse, doesn't it happen to you that dragPan remains disabled, regardless of whether it was initially enabled? I just updated to version 1.5.0, and this issue started happening.

E.g.: If you manage to fire 2 consecutive startDragging, any stopDragging after that won't turn on the dragPan again

EDIT: Created this issue: #1328

@underoot
Copy link
Member

underoot commented Jan 7, 2025

@fede-qubika The issue was addressed. Thank you for the report! Release with the fix will be done later

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.

5 participants