@react-aria/interactions
Advanced tools
Comparing version 3.3.0 to 3.3.1
@@ -1204,8 +1204,3 @@ var _react2 = require("react"); | ||
if ($f07e167670fb16f6a9d7f8a0eda7e156$var$isValidEvent(e, ref)) { | ||
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(); | ||
} | ||
state.isPointerDown = true; | ||
} | ||
@@ -1220,6 +1215,2 @@ }; // Use pointer events if available. Otherwise, fall back to mouse and touch events. | ||
onInteractOutside(e); | ||
if (e.button === 0) { | ||
e.preventDefault(); | ||
} | ||
} | ||
@@ -1242,6 +1233,2 @@ }; // changing these to capture phase fixed combobox | ||
onInteractOutside(e); | ||
if (e.button === 0) { | ||
e.preventDefault(); | ||
} | ||
} | ||
@@ -1256,6 +1243,2 @@ }; | ||
onInteractOutside(e); | ||
if (e.button === 0) { | ||
e.preventDefault(); | ||
} | ||
} | ||
@@ -1548,3 +1531,3 @@ }; | ||
let triggetKeyboardMove = (deltaX, deltaY) => { | ||
let triggerKeyboardMove = (deltaX, deltaY) => { | ||
start(); | ||
@@ -1561,3 +1544,3 @@ move('keyboard', deltaX, deltaY); | ||
e.stopPropagation(); | ||
triggetKeyboardMove(-1, 0); | ||
triggerKeyboardMove(-1, 0); | ||
break; | ||
@@ -1569,3 +1552,3 @@ | ||
e.stopPropagation(); | ||
triggetKeyboardMove(1, 0); | ||
triggerKeyboardMove(1, 0); | ||
break; | ||
@@ -1577,3 +1560,3 @@ | ||
e.stopPropagation(); | ||
triggetKeyboardMove(0, -1); | ||
triggerKeyboardMove(0, -1); | ||
break; | ||
@@ -1585,3 +1568,3 @@ | ||
e.stopPropagation(); | ||
triggetKeyboardMove(0, 1); | ||
triggerKeyboardMove(0, 1); | ||
break; | ||
@@ -1588,0 +1571,0 @@ } |
@@ -1153,8 +1153,3 @@ import _react, { useContext, useEffect, useMemo, useRef, useState } from "react"; | ||
if ($e415bb64ab27cb8fbfac2f417412022f$var$isValidEvent(e, ref)) { | ||
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(); | ||
} | ||
state.isPointerDown = true; | ||
} | ||
@@ -1169,6 +1164,2 @@ }; // Use pointer events if available. Otherwise, fall back to mouse and touch events. | ||
onInteractOutside(e); | ||
if (e.button === 0) { | ||
e.preventDefault(); | ||
} | ||
} | ||
@@ -1191,6 +1182,2 @@ }; // changing these to capture phase fixed combobox | ||
onInteractOutside(e); | ||
if (e.button === 0) { | ||
e.preventDefault(); | ||
} | ||
} | ||
@@ -1205,6 +1192,2 @@ }; | ||
onInteractOutside(e); | ||
if (e.button === 0) { | ||
e.preventDefault(); | ||
} | ||
} | ||
@@ -1493,3 +1476,3 @@ }; | ||
let triggetKeyboardMove = (deltaX, deltaY) => { | ||
let triggerKeyboardMove = (deltaX, deltaY) => { | ||
start(); | ||
@@ -1506,3 +1489,3 @@ move('keyboard', deltaX, deltaY); | ||
e.stopPropagation(); | ||
triggetKeyboardMove(-1, 0); | ||
triggerKeyboardMove(-1, 0); | ||
break; | ||
@@ -1514,3 +1497,3 @@ | ||
e.stopPropagation(); | ||
triggetKeyboardMove(1, 0); | ||
triggerKeyboardMove(1, 0); | ||
break; | ||
@@ -1522,3 +1505,3 @@ | ||
e.stopPropagation(); | ||
triggetKeyboardMove(0, -1); | ||
triggerKeyboardMove(0, -1); | ||
break; | ||
@@ -1530,3 +1513,3 @@ | ||
e.stopPropagation(); | ||
triggetKeyboardMove(0, 1); | ||
triggerKeyboardMove(0, 1); | ||
break; | ||
@@ -1533,0 +1516,0 @@ } |
{ | ||
"name": "@react-aria/interactions", | ||
"version": "3.3.0", | ||
"version": "3.3.1", | ||
"description": "Spectrum UI components in React", | ||
@@ -30,3 +30,3 @@ "license": "Apache-2.0", | ||
}, | ||
"gitHead": "9f738a06ea4e256c8d975f00502b4b0bbabb8f65" | ||
"gitHead": "296b5d76442b15a2062c2c3f8f295516601f1845" | ||
} |
@@ -41,7 +41,2 @@ /* | ||
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(); | ||
} | ||
} | ||
@@ -56,5 +51,2 @@ }; | ||
onInteractOutside(e); | ||
if (e.button === 0) { | ||
e.preventDefault(); | ||
} | ||
} | ||
@@ -78,5 +70,2 @@ }; | ||
onInteractOutside(e); | ||
if (e.button === 0) { | ||
e.preventDefault(); | ||
} | ||
} | ||
@@ -90,5 +79,2 @@ }; | ||
onInteractOutside(e); | ||
if (e.button === 0) { | ||
e.preventDefault(); | ||
} | ||
} | ||
@@ -95,0 +81,0 @@ }; |
@@ -175,3 +175,3 @@ /* | ||
let triggetKeyboardMove = (deltaX: number, deltaY: number) => { | ||
let triggerKeyboardMove = (deltaX: number, deltaY: number) => { | ||
start(); | ||
@@ -188,3 +188,3 @@ move('keyboard', deltaX, deltaY); | ||
e.stopPropagation(); | ||
triggetKeyboardMove(-1, 0); | ||
triggerKeyboardMove(-1, 0); | ||
break; | ||
@@ -195,3 +195,3 @@ case 'Right': | ||
e.stopPropagation(); | ||
triggetKeyboardMove(1, 0); | ||
triggerKeyboardMove(1, 0); | ||
break; | ||
@@ -202,3 +202,3 @@ case 'Up': | ||
e.stopPropagation(); | ||
triggetKeyboardMove(0, -1); | ||
triggerKeyboardMove(0, -1); | ||
break; | ||
@@ -209,3 +209,3 @@ case 'Down': | ||
e.stopPropagation(); | ||
triggetKeyboardMove(0, 1); | ||
triggerKeyboardMove(0, 1); | ||
break; | ||
@@ -212,0 +212,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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a 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
394808
4384
1