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 7ebb03c commit 517788bCopy full SHA for 517788b
packages/uui-base/lib/utils/drag.ts
@@ -25,7 +25,11 @@ export const drag = (
25
// TouchEvent is not available in Firefox
26
if ('TouchEvent' in window && event instanceof TouchEvent) {
27
pointerEvent = event.touches[0];
28
- } else if (event instanceof PointerEvent) {
+ } else if (event instanceof MouseEvent) {
29
+ // Some browsers seem to return PointerEvent instead of MouseEvent for click event.
30
+ // We can use MouseEvent as PointerEvent inherits from MouseEvent.
31
+ // Firefox: https://bugzilla.mozilla.org/show_bug.cgi?id=1675847
32
+ // Safari: https://bugs.webkit.org/show_bug.cgi?id=218665
33
pointerEvent = event;
34
} else {
35
return;
0 commit comments