endDragging method
void
endDragging()
End drag optimization mode and rebuild spatial index for dragged objects
Implementation
void endDragging() {
if (_isDragging) {
_isDragging = false;
// Clean rebuild only for objects that actually moved
_rebuildSpatialIndexForDraggedObjects();
_draggingObjectIds.clear();
_draggingObjectBounds.clear();
_draggingBounds = Rect.zero;
// Force cache invalidation after drag ends
_invalidateCache();
}
}