Implement cancel draggable during onAnnotationDrag by Ph0tonic · Pull Request #1129 · mapbox/mapbox-plugins-android · GitHub
Skip to content

Implement cancel draggable during onAnnotationDrag#1129

Open
Ph0tonic wants to merge 1 commit into
mapbox:masterfrom
Ph0tonic:p0-annotation-plugin-draggable-cancel
Open

Implement cancel draggable during onAnnotationDrag#1129
Ph0tonic wants to merge 1 commit into
mapbox:masterfrom
Ph0tonic:p0-annotation-plugin-draggable-cancel

Conversation

@Ph0tonic

Copy link
Copy Markdown
Contributor

While using this plugin, I needed to cancel a drag event when my point was further apart from another location. The way I solved this was by deleting the point and repainting it so that cancel the drag event. The problem is that it's not efficient at all.

Here is a proposal to allow a drag event to be canceled directly in the dragEventListener. I would be pleased to have your feedback @langsmith and @LukasPaczos.

Thanks in advance

@LukasPaczos

Copy link
Copy Markdown
Contributor

@Ph0tonic

Ph0tonic commented May 19, 2020

Copy link
Copy Markdown
Contributor Author

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.

2 participants