Removed isDragging = false