endDragging method

void endDragging()

End drag optimization mode and rebuild spatial index for dragged objects

Implementation

void endDragging() {
  if (_isDragging) {
    _isDragging = false;

    // Rebuild spatial index for objects that were being dragged
    _rebuildSpatialIndexForDraggedObjects();

    _draggingObjectIds.clear();

    // Force cache invalidation after drag ends
    _invalidateCache();
  }
}