@react-aria/interactions 3.0.0-nightly.1508 → 3.0.0-nightly.1514
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 +4 -3
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -4
- package/src/usePress.ts +1 -1
package/dist/main.js
CHANGED
|
@@ -30,6 +30,7 @@ $parcel$export($e1dbec26039c051d$exports, "Pressable", () => $e1dbec26039c051d$e
|
|
|
30
30
|
var $0294ea432cd92340$exports = {};
|
|
31
31
|
|
|
32
32
|
$parcel$export($0294ea432cd92340$exports, "usePress", () => $0294ea432cd92340$export$45712eceda6fad21);
|
|
33
|
+
$parcel$export($0294ea432cd92340$exports, "isVirtualPointerEvent", () => $0294ea432cd92340$export$29bf1b5f2c56cf63);
|
|
33
34
|
|
|
34
35
|
// Note that state only matters here for iOS. Non-iOS gets user-select: none applied to the target element
|
|
35
36
|
// rather than at the document level so we just need to apply/remove user-select: none for each pressed element individually
|
|
@@ -356,7 +357,7 @@ function $0294ea432cd92340$export$45712eceda6fad21(props) {
|
|
|
356
357
|
// Ignore and let the onClick handler take care of it instead.
|
|
357
358
|
// https://bugs.webkit.org/show_bug.cgi?id=222627
|
|
358
359
|
// https://bugs.webkit.org/show_bug.cgi?id=223202
|
|
359
|
-
if ($0294ea432cd92340$
|
|
360
|
+
if ($0294ea432cd92340$export$29bf1b5f2c56cf63(e.nativeEvent)) {
|
|
360
361
|
state.pointerType = 'virtual';
|
|
361
362
|
return;
|
|
362
363
|
}
|
|
@@ -638,7 +639,7 @@ function $0294ea432cd92340$var$shouldPreventDefault(target) {
|
|
|
638
639
|
function $0294ea432cd92340$var$shouldPreventDefaultKeyboard(target) {
|
|
639
640
|
return !((target.tagName === 'INPUT' || target.tagName === 'BUTTON') && target.type === 'submit');
|
|
640
641
|
}
|
|
641
|
-
function $0294ea432cd92340$
|
|
642
|
+
function $0294ea432cd92340$export$29bf1b5f2c56cf63(event) {
|
|
642
643
|
// If the pointer size is zero, then we assume it's from a screen reader.
|
|
643
644
|
// Android TalkBack double tap will sometimes return a event with width and height of 1
|
|
644
645
|
// and pointerType === 'mouse' so we need to check for a specific combination of event attributes.
|