@react-aria/interactions
Advanced tools
Comparing version 3.0.0-nightly.748 to 3.0.0-nightly.752
@@ -1204,3 +1204,8 @@ var _react2 = require("react"); | ||
if ($f07e167670fb16f6a9d7f8a0eda7e156$var$isValidEvent(e, ref)) { | ||
state.isPointerDown = true; | ||
state.isPointerDown = true; // Due to browser inconsistencies, we prevent | ||
// default on pointer down. FF will otherwise try to start text selection. | ||
if (e.button === 0) { | ||
e.preventDefault(); | ||
} | ||
} | ||
@@ -1215,2 +1220,6 @@ }; // Use pointer events if available. Otherwise, fall back to mouse and touch events. | ||
onInteractOutside(e); | ||
if (e.button === 0) { | ||
e.preventDefault(); | ||
} | ||
} | ||
@@ -1233,2 +1242,6 @@ }; // changing these to capture phase fixed combobox | ||
onInteractOutside(e); | ||
if (e.button === 0) { | ||
e.preventDefault(); | ||
} | ||
} | ||
@@ -1243,2 +1256,6 @@ }; | ||
onInteractOutside(e); | ||
if (e.button === 0) { | ||
e.preventDefault(); | ||
} | ||
} | ||
@@ -1245,0 +1262,0 @@ }; |
@@ -1153,3 +1153,8 @@ import _react, { useContext, useEffect, useMemo, useRef, useState } from "react"; | ||
if ($e415bb64ab27cb8fbfac2f417412022f$var$isValidEvent(e, ref)) { | ||
state.isPointerDown = true; | ||
state.isPointerDown = true; // Due to browser inconsistencies, we prevent | ||
// default on pointer down. FF will otherwise try to start text selection. | ||
if (e.button === 0) { | ||
e.preventDefault(); | ||
} | ||
} | ||
@@ -1164,2 +1169,6 @@ }; // Use pointer events if available. Otherwise, fall back to mouse and touch events. | ||
onInteractOutside(e); | ||
if (e.button === 0) { | ||
e.preventDefault(); | ||
} | ||
} | ||
@@ -1182,2 +1191,6 @@ }; // changing these to capture phase fixed combobox | ||
onInteractOutside(e); | ||
if (e.button === 0) { | ||
e.preventDefault(); | ||
} | ||
} | ||
@@ -1192,2 +1205,6 @@ }; | ||
onInteractOutside(e); | ||
if (e.button === 0) { | ||
e.preventDefault(); | ||
} | ||
} | ||
@@ -1194,0 +1211,0 @@ }; |
{ | ||
"name": "@react-aria/interactions", | ||
"version": "3.0.0-nightly.748+6e9f55a7", | ||
"version": "3.0.0-nightly.752+d6206f77", | ||
"description": "Spectrum UI components in React", | ||
@@ -21,4 +21,4 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.6.2", | ||
"@react-aria/utils": "3.0.0-nightly.748+6e9f55a7", | ||
"@react-types/shared": "3.0.0-nightly.748+6e9f55a7" | ||
"@react-aria/utils": "3.0.0-nightly.752+d6206f77", | ||
"@react-types/shared": "3.0.0-nightly.752+d6206f77" | ||
}, | ||
@@ -31,3 +31,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "6e9f55a7cebf5f61cdd89057f7cc8b00d021d4d7" | ||
"gitHead": "d6206f778338e478a9dfa0589bd79cecd97c403c" | ||
} |
@@ -41,2 +41,7 @@ /* | ||
state.isPointerDown = true; | ||
// Due to browser inconsistencies, we prevent | ||
// default on pointer down. FF will otherwise try to start text selection. | ||
if (e.button === 0) { | ||
e.preventDefault(); | ||
} | ||
} | ||
@@ -51,2 +56,5 @@ }; | ||
onInteractOutside(e); | ||
if (e.button === 0) { | ||
e.preventDefault(); | ||
} | ||
} | ||
@@ -70,2 +78,5 @@ }; | ||
onInteractOutside(e); | ||
if (e.button === 0) { | ||
e.preventDefault(); | ||
} | ||
} | ||
@@ -79,2 +90,5 @@ }; | ||
onInteractOutside(e); | ||
if (e.button === 0) { | ||
e.preventDefault(); | ||
} | ||
} | ||
@@ -81,0 +95,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
398060
4422