feature(dragging): add isDragging helper function