desandro / draggabilly

:point_down: Make that shiz draggable
https://draggabilly.desandro.com
MIT License
3.86k stars 386 forks source link

How can I disable the onclick event of button when dragging? #137

Closed ZilinZhou1995 closed 8 years ago

ZilinZhou1995 commented 8 years ago

I try like this, but it doesn't work. $draggables.on( 'dragStart', function( event, pointer, moveVector ) { $('button').unbind('click'); }); $draggables.on( 'dragEnd', function( event, pointer, moveVector ) { $('button').bind('click'); });

ZilinZhou1995 commented 8 years ago

I have solved it and it is a jquery problem.

louisscrew commented 4 years ago

How to solve it?