Another click vs drag problem :-( Why does dragEnd not fire?
http://codepen.io/nickbewley/pen/MYWVog
Thanks a ton!
Credit to Emanuele Salamone for the inspiration
you should check delta. set startx(on DragStart), endx(on DragEnd) and compare those values to see whether it's dragged (delta > 0) or clicked (delta == 0).
2 Comments