internalEndAnnotationDrag method
void
internalEndAnnotationDrag()
Implementation
void internalEndAnnotationDrag() {
runInAction(() {
_draggedAnnotationId.value = null;
_lastPointerPosition.value = null;
_annotationCursor.value = SystemMouseCursors.basic;
// Re-enable panning after annotation drag ends
_parentController.interaction.panEnabled.value = true;
// Safety reset: ensure flag is cleared when drag ends
if (_isMovingGroupNodes) {
_isMovingGroupNodes = false;
}
});
// Note: Spatial index update is handled by MobX reaction in _setupSpatialIndexReactions()
// which fires when draggedAnnotationId becomes null
}