File tree 3 files changed +12
-12
lines changed
3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -756,7 +756,7 @@ L.DomUtil = {
756
756
value = Math . round ( value * 100 ) ;
757
757
758
758
if ( filter ) {
759
- filter . Enabled = ( value = == 100 ) ;
759
+ filter . Enabled = ( value ! == 100 ) ;
760
760
filter . Opacity = value ;
761
761
} else {
762
762
el . style . filter += ' progid:' + filterName + '(opacity=' + value + ')' ;
@@ -5401,11 +5401,6 @@ L.Draggable = L.Class.extend({
5401
5401
return ;
5402
5402
}
5403
5403
5404
- if ( ! L . Browser . touch ) {
5405
- L . DomUtil . disableTextSelection ( ) ;
5406
- this . _setMovingCursor ( ) ;
5407
- }
5408
-
5409
5404
this . _startPos = this . _newPos = L . DomUtil . getPosition ( this . _element ) ;
5410
5405
this . _startPoint = new L . Point ( first . clientX , first . clientY ) ;
5411
5406
@@ -5427,6 +5422,11 @@ L.Draggable = L.Class.extend({
5427
5422
if ( ! this . _moved ) {
5428
5423
this . fire ( 'dragstart' ) ;
5429
5424
this . _moved = true ;
5425
+
5426
+ if ( ! L . Browser . touch ) {
5427
+ L . DomUtil . disableTextSelection ( ) ;
5428
+ this . _setMovingCursor ( ) ;
5429
+ }
5430
5430
}
5431
5431
5432
5432
this . _newPos = this . _startPos . add ( diffVec ) ;
Original file line number Diff line number Diff line change @@ -60,11 +60,6 @@ L.Draggable = L.Class.extend({
60
60
return ;
61
61
}
62
62
63
- if ( ! L . Browser . touch ) {
64
- L . DomUtil . disableTextSelection ( ) ;
65
- this . _setMovingCursor ( ) ;
66
- }
67
-
68
63
this . _startPos = this . _newPos = L . DomUtil . getPosition ( this . _element ) ;
69
64
this . _startPoint = new L . Point ( first . clientX , first . clientY ) ;
70
65
@@ -86,6 +81,11 @@ L.Draggable = L.Class.extend({
86
81
if ( ! this . _moved ) {
87
82
this . fire ( 'dragstart' ) ;
88
83
this . _moved = true ;
84
+
85
+ if ( ! L . Browser . touch ) {
86
+ L . DomUtil . disableTextSelection ( ) ;
87
+ this . _setMovingCursor ( ) ;
88
+ }
89
89
}
90
90
91
91
this . _newPos = this . _startPos . add ( diffVec ) ;
You can’t perform that action at this time.
0 commit comments