@react-aria/interactions 3.0.0-nightly.1519 → 3.0.0-nightly.1522

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