Skip to content

Commit 2f06e75

Browse files
authored
revert: revert disable dragstart event preventDefault (#7) (#25)
1 parent 2b05924 commit 2f06e75

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/MouseBackend.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,6 @@ export default class MouseBackend {
5353
this.handleWindowMoveCapture.bind(this)
5454
this.handleWindowMoveEndCapture =
5555
this.handleWindowMoveEndCapture.bind(this)
56-
this.handleWindowDragstart =
57-
this.handleWindowDragstart.bind(this)
5856
}
5957

6058
setup() {
@@ -75,8 +73,6 @@ export default class MouseBackend {
7573
this.handleWindowMoveCapture, true)
7674
window.addEventListener('mouseup',
7775
this.handleWindowMoveEndCapture, true)
78-
window.addEventListener('dragstart',
79-
this.handleWindowDragstart, true)
8076
}
8177

8278
getSourceClientOffset (sourceId) {
@@ -99,8 +95,6 @@ export default class MouseBackend {
9995
'mousemove', this.handleWindowMoveCapture, true)
10096
window.removeEventListener(
10197
'mouseup', this.handleWindowMoveEndCapture, true)
102-
window.removeEventListener(
103-
'dragstart', this.handleWindowDragstart, true)
10498
}
10599

106100
connectDragSource(sourceId, node) {
@@ -212,11 +206,6 @@ export default class MouseBackend {
212206
this.actions.endDrag()
213207
}
214208

215-
// Disable drag on images (Firefox)
216-
handleWindowDragstart(e) {
217-
e.preventDefault()
218-
}
219-
220209
installSourceNodeRemovalObserver (node) {
221210
this.uninstallSourceNodeRemovalObserver()
222211

0 commit comments

Comments
 (0)