I use jQuery.click
to handle the mouse click event on Raphael graph, meanwhile, I need to handle mouse drag
event, mouse drag consists of mousedown
, mouseup
and mousemove
in Raphael.
It is difficult to distinguish click
and drag
because click
also contain mousedown
& mouseup
, How can I distinguish mouse “click” & mouse “drag” then in Javascript?