Skip to content

Commit 66aa0e8

Browse files
committed
Revert "remove existing event listeners"
This reverts commit ea411d2.
1 parent ea411d2 commit 66aa0e8

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

src/components/dragelement/index.js

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -85,23 +85,6 @@ dragElement.init = function init(options) {
8585
initialTarget,
8686
rightClick;
8787

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-
10588
if(!gd._mouseDownTime) gd._mouseDownTime = 0;
10689

10790
element.style.pointerEvents = 'all';

0 commit comments

Comments
 (0)