@react-aria/interactions 3.0.0-nightly.1775 → 3.0.0-nightly.1778

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
@@ -85,6 +85,10 @@ function $f7e14e656343df57$export$b0d6fa1ab32e3295(target) {
85
85
  function $625cf83917e112ad$export$60278871457622de(event) {
86
86
  // JAWS/NVDA with Firefox.
87
87
  if (event.mozInputSource === 0 && event.isTrusted) return true;
88
+ // Android TalkBack's detail value varies depending on the event listener providing the event so we have specific logic here instead
89
+ // If pointerType is defined, event is from a click listener. For events from mousedown listener, detail === 0 is a sufficient check
90
+ // to detect TalkBack virtual clicks.
91
+ if ($goTMa$reactariautils.isAndroid() && event.pointerType != null) return event.type === 'click' && event.buttons === 1;
88
92
  return event.detail === 0 && !event.pointerType;
89
93
  }
90
94
  class $625cf83917e112ad$export$905e7fc544a71f36 {