File tree Expand file tree Collapse file tree 4 files changed +17
-0
lines changed Expand file tree Collapse file tree 4 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,10 @@ Interactable.prototype.draggable = function (options) {
158
158
if ( utils . isBool ( options ) ) {
159
159
this . options . drag . enabled = options ;
160
160
161
+ if ( ! options ) {
162
+ this . ondragstart = this . ondragstart = this . ondragend = null ;
163
+ }
164
+
161
165
return this ;
162
166
}
163
167
Original file line number Diff line number Diff line change @@ -346,6 +346,11 @@ Interactable.prototype.dropzone = function (options) {
346
346
if ( utils . isBool ( options ) ) {
347
347
this . options . drop . enabled = options ;
348
348
349
+ if ( ! options ) {
350
+ this . ondragenter = this . ondragleave = this . ondrop
351
+ = this . ondropactivate = this . ondropdeactivate = null ;
352
+ }
353
+
349
354
return this ;
350
355
}
351
356
Original file line number Diff line number Diff line change @@ -113,6 +113,10 @@ Interactable.prototype.gesturable = function (options) {
113
113
if ( utils . isBool ( options ) ) {
114
114
this . options . gesture . enabled = options ;
115
115
116
+ if ( ! options ) {
117
+ this . ongesturestart = this . ongesturestart = this . ongestureend = null ;
118
+ }
119
+
116
120
return this ;
117
121
}
118
122
Original file line number Diff line number Diff line change @@ -361,6 +361,10 @@ Interactable.prototype.resizable = function (options) {
361
361
if ( utils . isBool ( options ) ) {
362
362
this . options . resize . enabled = options ;
363
363
364
+ if ( ! options ) {
365
+ this . onresizestart = this . onresizestart = this . onresizeend = null ;
366
+ }
367
+
364
368
return this ;
365
369
}
366
370
return this . options . resize ;
You can’t perform that action at this time.
0 commit comments