We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6a82dbb commit ea411d2Copy full SHA for ea411d2
src/components/dragelement/index.js
@@ -85,6 +85,23 @@ dragElement.init = function init(options) {
85
initialTarget,
86
rightClick;
87
88
+ if(options.dragmode === false) {
89
+ if(element.onmousedown) {
90
+ element.onmousedown = undefined;
91
+ }
92
+ if(!supportsPassive) {
93
+ if(element.ontouchstart) {
94
+ element.ontouchstart = undefined;
95
96
+ } else {
97
+ if(element._ontouchstart) {
98
+ element.removeEventListener('touchstart', element._ontouchstart);
99
+ element._ontouchstart = undefined;
100
101
102
+ return;
103
104
+
105
if(!gd._mouseDownTime) gd._mouseDownTime = 0;
106
107
element.style.pointerEvents = 'all';
0 commit comments