Closed ZilinZhou1995 closed 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'); });
$draggables.on( 'dragStart', function( event, pointer, moveVector ) { $('button').unbind('click'); }); $draggables.on( 'dragEnd', function( event, pointer, moveVector ) { $('button').bind('click'); });
I have solved it and it is a jquery problem.
How to solve it?
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'); });