@react-aria/interactions 3.0.0-nightly.1564 → 3.0.0-nightly.1571
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main.js +3 -2
- package/dist/main.js.map +1 -1
- package/dist/module.js +3 -2
- package/dist/module.js.map +1 -1
- package/package.json +5 -5
- package/src/usePress.ts +4 -2
package/dist/main.js
CHANGED
|
@@ -640,8 +640,9 @@ function $0294ea432cd92340$var$isVirtualPointerEvent(event) {
|
|
|
640
640
|
// Android TalkBack double tap will sometimes return a event with width and height of 1
|
|
641
641
|
// and pointerType === 'mouse' so we need to check for a specific combination of event attributes.
|
|
642
642
|
// Cannot use "event.pressure === 0" as the sole check due to Safari pointer events always returning pressure === 0
|
|
643
|
-
// instead of .5, see https://bugs.webkit.org/show_bug.cgi?id=206216
|
|
644
|
-
|
|
643
|
+
// instead of .5, see https://bugs.webkit.org/show_bug.cgi?id=206216. event.pointerType === 'mouse' is to distingush
|
|
644
|
+
// Talkback double tap from Windows Firefox touch screen press
|
|
645
|
+
return event.width === 0 && event.height === 0 || event.width === 1 && event.height === 1 && event.pressure === 0 && event.detail === 0 && event.pointerType === 'mouse';
|
|
645
646
|
}
|
|
646
647
|
|
|
647
648
|
|