Skip to content

Commit bdd0f24

Browse files
committed
Allow passing range option to useSwipeTransition (#32412)
Stacked on #32379 Track the range offsets along the timeline where previous/current/next is. This can also be specified as an option. This lets you model more than three states along a timeline by clamping them and then updating the "current" as you go. It also allows specifying the "current" offset as something different than what it was when the gesture started such as if it has to start after scroll has already happened (such as what happens if you listen to the "scroll" event). DiffTrain build for [662957c](662957c)
1 parent aeb2edf commit bdd0f24

35 files changed

+91
-86
lines changed

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
88479c6fc31ba2902587694338350ae95733d6b2
1+
662957cc735a7f630b497ada45af8ff39684d2b9
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
88479c6fc31ba2902587694338350ae95733d6b2
1+
662957cc735a7f630b497ada45af8ff39684d2b9

compiled/facebook-www/React-dev.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1575,7 +1575,7 @@ __DEV__ &&
15751575
exports.useTransition = function () {
15761576
return resolveDispatcher().useTransition();
15771577
};
1578-
exports.version = "19.1.0-www-classic-88479c6f-20250220";
1578+
exports.version = "19.1.0-www-classic-662957cc-20250221";
15791579
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
15801580
"function" ===
15811581
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1575,7 +1575,7 @@ __DEV__ &&
15751575
exports.useTransition = function () {
15761576
return resolveDispatcher().useTransition();
15771577
};
1578-
exports.version = "19.1.0-www-modern-88479c6f-20250220";
1578+
exports.version = "19.1.0-www-modern-662957cc-20250221";
15791579
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
15801580
"function" ===
15811581
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-prod.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,4 +641,4 @@ exports.useSyncExternalStore = function (
641641
exports.useTransition = function () {
642642
return ReactSharedInternals.H.useTransition();
643643
};
644-
exports.version = "19.1.0-www-classic-88479c6f-20250220";
644+
exports.version = "19.1.0-www-classic-662957cc-20250221";

compiled/facebook-www/React-prod.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,4 +641,4 @@ exports.useSyncExternalStore = function (
641641
exports.useTransition = function () {
642642
return ReactSharedInternals.H.useTransition();
643643
};
644-
exports.version = "19.1.0-www-modern-88479c6f-20250220";
644+
exports.version = "19.1.0-www-modern-662957cc-20250221";

compiled/facebook-www/React-profiling.classic.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ exports.useSyncExternalStore = function (
645645
exports.useTransition = function () {
646646
return ReactSharedInternals.H.useTransition();
647647
};
648-
exports.version = "19.1.0-www-classic-88479c6f-20250220";
648+
exports.version = "19.1.0-www-classic-662957cc-20250221";
649649
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
650650
"function" ===
651651
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/React-profiling.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,7 @@ exports.useSyncExternalStore = function (
645645
exports.useTransition = function () {
646646
return ReactSharedInternals.H.useTransition();
647647
};
648-
exports.version = "19.1.0-www-modern-88479c6f-20250220";
648+
exports.version = "19.1.0-www-modern-662957cc-20250221";
649649
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
650650
"function" ===
651651
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-dev.classic.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17387,10 +17387,10 @@ __DEV__ &&
1738717387
(function () {
1738817388
var internals = {
1738917389
bundleType: 1,
17390-
version: "19.1.0-www-classic-88479c6f-20250220",
17390+
version: "19.1.0-www-classic-662957cc-20250221",
1739117391
rendererPackageName: "react-art",
1739217392
currentDispatcherRef: ReactSharedInternals,
17393-
reconcilerVersion: "19.1.0-www-classic-88479c6f-20250220"
17393+
reconcilerVersion: "19.1.0-www-classic-662957cc-20250221"
1739417394
};
1739517395
internals.overrideHookState = overrideHookState;
1739617396
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -17424,7 +17424,7 @@ __DEV__ &&
1742417424
exports.Shape = Shape;
1742517425
exports.Surface = Surface;
1742617426
exports.Text = Text;
17427-
exports.version = "19.1.0-www-classic-88479c6f-20250220";
17427+
exports.version = "19.1.0-www-classic-662957cc-20250221";
1742817428
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1742917429
"function" ===
1743017430
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

compiled/facebook-www/ReactART-dev.modern.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17159,10 +17159,10 @@ __DEV__ &&
1715917159
(function () {
1716017160
var internals = {
1716117161
bundleType: 1,
17162-
version: "19.1.0-www-modern-88479c6f-20250220",
17162+
version: "19.1.0-www-modern-662957cc-20250221",
1716317163
rendererPackageName: "react-art",
1716417164
currentDispatcherRef: ReactSharedInternals,
17165-
reconcilerVersion: "19.1.0-www-modern-88479c6f-20250220"
17165+
reconcilerVersion: "19.1.0-www-modern-662957cc-20250221"
1716617166
};
1716717167
internals.overrideHookState = overrideHookState;
1716817168
internals.overrideHookStateDeletePath = overrideHookStateDeletePath;
@@ -17196,7 +17196,7 @@ __DEV__ &&
1719617196
exports.Shape = Shape;
1719717197
exports.Surface = Surface;
1719817198
exports.Text = Text;
17199-
exports.version = "19.1.0-www-modern-88479c6f-20250220";
17199+
exports.version = "19.1.0-www-modern-662957cc-20250221";
1720017200
"undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ &&
1720117201
"function" ===
1720217202
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop &&

0 commit comments

Comments
 (0)