Skip to content

Commit 8a0bbed

Browse files
authored
Fix drag annotation drag being triggered when multi-finger gesture is in progress. (#3011)
1 parent ec36539 commit 8a0bbed

File tree

6 files changed

+428
-1
lines changed

6 files changed

+428
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
Mapbox welcomes participation and contributions from everyone.
44

55
# main
6-
6+
## Bug fixes 🐞
7+
* Fix annotation drag being triggered when multi-finger gesture is in progress.
78

89
# 11.11.0-rc.1 March 12, 2025
910
## Features ✨ and improvements 🏁

plugin-annotation/src/main/java/com/mapbox/maps/plugin/annotation/AnnotationManagerImpl.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,8 @@ internal constructor(
310310
focalPoint
311311
)
312312
)
313+
// skip updating the annotation's position as the drag is already ended
314+
return
313315
}
314316
val moveObject = mapMoveDetector.getMoveObject(0)
315317
val x = moveObject.currentX

plugin-annotation/src/test/java/com/mapbox/maps/plugin/annotation/generated/CircleAnnotationManagerTest.kt

Lines changed: 106 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugin-annotation/src/test/java/com/mapbox/maps/plugin/annotation/generated/PointAnnotationManagerTest.kt

Lines changed: 106 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugin-annotation/src/test/java/com/mapbox/maps/plugin/annotation/generated/PolygonAnnotationManagerTest.kt

Lines changed: 106 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)