Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,10 @@ public DraggableAnnotationController(MapView mapView, MapboxMap mapboxMap,
mapView.setOnTouchListener(new View.OnTouchListener() {
@Override
public boolean onTouch(View v, MotionEvent event) {
Annotation oldAnnotation = draggedAnnotation;
androidGesturesManager.onTouchEvent(event);
// if drag is started, don't pass motion events further
return draggedAnnotation != null;
// if drag is started or drag is finished, don't pass motion events further
return draggedAnnotation != null || oldAnnotation != draggedAnnotation;
}
});
}
Expand Down