use pending state to check dragging