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 d82b5e0 commit 6e93964Copy full SHA for 6e93964
packages/uui-base/lib/utils/drag.ts
@@ -25,7 +25,9 @@ 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 seems to return PointerEvent instead of MouseEvent for click event.
30
+ // We can use MouseEvent as PointerEvent inherits from MouseEvent.
31
pointerEvent = event;
32
} else {
33
return;
0 commit comments