Differentiate between clicking and dragging