File tree 2 files changed +4
-10
lines changed
2 files changed +4
-10
lines changed Original file line number Diff line number Diff line change 246
246
247
247
fn . on_dragstart = function ( e ) {
248
248
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 ;
251
253
var offset = this . $container . offset ( ) ;
252
254
this . baseX = Math . round ( offset . left ) ;
253
255
this . baseY = Math . round ( offset . top ) ;
Original file line number Diff line number Diff line change 661
661
offset_left : this . options . widget_margins [ 0 ] ,
662
662
container_width : this . container_width ,
663
663
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
-
671
664
self . $widgets . filter ( '.player-revert' )
672
665
. removeClass ( 'player-revert' ) ;
673
666
680
673
self . $el . trigger ( 'gridster:dragstart' ) ;
681
674
} ,
682
675
stop : function ( event , ui ) {
683
- self . dragging = false ;
684
676
self . on_stop_drag . call ( self , event , ui ) ;
685
677
self . $el . trigger ( 'gridster:dragstop' ) ;
686
678
} ,
You can’t perform that action at this time.
0 commit comments