We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 344a6c5 commit 20be404Copy full SHA for 20be404
src/components/dragelement/index.js
@@ -137,6 +137,12 @@ dragElement.init = function init(options) {
137
initialEvent = e;
138
rightClick = e.buttons === 2 || e.ctrlKey;
139
140
+ // fix Fx.hover for touch events
141
+ if(typeof e.clientX === 'undefined' && typeof e.clientY === 'undefined') {
142
+ e.clientX = startX;
143
+ e.clientY = startY;
144
+ }
145
+
146
newMouseDownTime = (new Date()).getTime();
147
if(newMouseDownTime - gd._mouseDownTime < DBLCLICKDELAY) {
148
// in a click train
0 commit comments