Skip to content

Fixing bug with disableDrag with useLongPress + programmatical set disableDrag#59

Open
paamand wants to merge 1 commit intoibrierley:masterfrom
paamand:master
Open

Fixing bug with disableDrag with useLongPress + programmatical set disableDrag#59
paamand wants to merge 1 commit intoibrierley:masterfrom
paamand:master

Conversation

@paamand
Copy link
Copy Markdown

@paamand paamand commented Apr 25, 2025

The new disableDrag did not work with useLongPress due to wrong logic in the GestureDetector.
Instead, this PR changes the disableDrag to not be final and checks the state in the relevant _start and _pan methods.

This fixes the problem with useLongPress and also allows to set the disableDrag on an existing marker.

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.

1 participant