Skip to content
Advertisement

Tag: javascript-events

prevent click event after drag in jQuery

I have a draggable <div> with a click event and without any event for drag. but after i drag <div> the click event is apply to <div>. how can prevent of click event after drag? http://jsfiddle.net/prince4prodigy/aG72R/ AdvertisementAnswer I made a solution with data and setTimeout. Maybe better than helper classes. and Check the fiddle.

Advertisement