Renamed draggingItem to isDraggingItem to prevent confusion.