File tree Expand file tree Collapse file tree 2 files changed +4
-10
lines changed
Expand file tree Collapse file tree 2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 246246
247247 fn . on_dragstart = function ( e ) {
248248 e . preventDefault ( ) ;
249- this . drag_start = true ;
250- this . is_dragging = true ;
249+
250+ if ( this . is_dragging ) { return this ; }
251+
252+ this . drag_start = this . is_dragging = true ;
251253 var offset = this . $container . offset ( ) ;
252254 this . baseX = Math . round ( offset . left ) ;
253255 this . baseY = Math . round ( offset . top ) ;
Original file line number Diff line number Diff line change 661661 offset_left : this . options . widget_margins [ 0 ] ,
662662 container_width : this . container_width ,
663663 start : function ( event , ui ) {
664- // Ignore drag start if mouse was released outside screen on a previous drag
665- if ( self . dragging ) {
666- return ;
667- }
668-
669- self . dragging = true ;
670-
671664 self . $widgets . filter ( '.player-revert' )
672665 . removeClass ( 'player-revert' ) ;
673666
680673 self . $el . trigger ( 'gridster:dragstart' ) ;
681674 } ,
682675 stop : function ( event , ui ) {
683- self . dragging = false ;
684676 self . on_stop_drag . call ( self , event , ui ) ;
685677 self . $el . trigger ( 'gridster:dragstop' ) ;
686678 } ,
You can’t perform that action at this time.
0 commit comments