@@ -53,8 +53,6 @@ export default class MouseBackend {
53
53
this . handleWindowMoveCapture . bind ( this )
54
54
this . handleWindowMoveEndCapture =
55
55
this . handleWindowMoveEndCapture . bind ( this )
56
- this . handleWindowClick =
57
- this . handleWindowClick . bind ( this )
58
56
this . handleWindowDragstart =
59
57
this . handleWindowDragstart . bind ( this )
60
58
}
@@ -77,8 +75,6 @@ export default class MouseBackend {
77
75
this . handleWindowMoveCapture , true )
78
76
window . addEventListener ( 'mouseup' ,
79
77
this . handleWindowMoveEndCapture , true )
80
- window . addEventListener ( 'click' ,
81
- this . handleWindowClick , true )
82
78
window . addEventListener ( 'dragstart' ,
83
79
this . handleWindowDragstart , true )
84
80
}
@@ -103,8 +99,6 @@ export default class MouseBackend {
103
99
'mousemove' , this . handleWindowMoveCapture , true )
104
100
window . removeEventListener (
105
101
'mouseup' , this . handleWindowMoveEndCapture , true )
106
- window . removeEventListener (
107
- 'click' , this . handleWindowClick , true )
108
102
window . removeEventListener (
109
103
'dragstart' , this . handleWindowDragstart , true )
110
104
}
@@ -208,7 +202,6 @@ export default class MouseBackend {
208
202
this . moveStartSourceIds = null
209
203
return
210
204
}
211
- this . preventClick = true
212
205
213
206
e . preventDefault ( )
214
207
@@ -219,11 +212,6 @@ export default class MouseBackend {
219
212
this . actions . endDrag ( )
220
213
}
221
214
222
- handleWindowClick ( e ) {
223
- if ( this . preventClick ) e . stopPropagation ( )
224
- this . preventClick = false
225
- }
226
-
227
215
// Disable drag on images (Firefox)
228
216
handleWindowDragstart ( e ) {
229
217
e . preventDefault ( )
0 commit comments