@@ -51,7 +51,7 @@ import {
51
51
enableYieldingBeforePassive ,
52
52
enableThrottledScheduling ,
53
53
enableViewTransition ,
54
- enableSwipeTransition ,
54
+ enableGestureTransition ,
55
55
} from 'shared/ReactFeatureFlags' ;
56
56
import { resetOwnerStackLimit } from 'shared/ReactOwnerStackReset' ;
57
57
import ReactSharedInternals from 'shared/ReactSharedInternals' ;
@@ -753,7 +753,7 @@ export function requestUpdateLane(fiber: Fiber): Lane {
753
753
754
754
const transition = requestCurrentTransition ( ) ;
755
755
if ( transition !== null ) {
756
- if ( enableSwipeTransition ) {
756
+ if ( enableGestureTransition ) {
757
757
if ( transition . gesture ) {
758
758
throw new Error (
759
759
'Cannot setState on regular state inside a startGestureTransition. ' +
@@ -1451,7 +1451,7 @@ function commitRootWhenReady(
1451
1451
const subtreeFlags = finishedWork . subtreeFlags ;
1452
1452
const isViewTransitionEligible =
1453
1453
enableViewTransition && includesOnlyViewTransitionEligibleLanes ( lanes ) ; // TODO: Use a subtreeFlag to optimize.
1454
- const isGestureTransition = enableSwipeTransition && isGestureRender ( lanes ) ;
1454
+ const isGestureTransition = enableGestureTransition && isGestureRender ( lanes ) ;
1455
1455
const maySuspendCommit =
1456
1456
subtreeFlags & ShouldSuspendCommit ||
1457
1457
( subtreeFlags & BothVisibilityAndMaySuspendCommit ) ===
@@ -1470,7 +1470,7 @@ function commitRootWhenReady(
1470
1470
if ( isViewTransitionEligible || isGestureTransition ) {
1471
1471
// If we're stopping gestures we don't have to wait for any pending
1472
1472
// view transition. We'll stop it when we commit.
1473
- if ( ! enableSwipeTransition || root . stoppingGestures === null ) {
1473
+ if ( ! enableGestureTransition || root . stoppingGestures === null ) {
1474
1474
suspendOnActiveViewTransition ( root . containerInfo ) ;
1475
1475
}
1476
1476
}
@@ -3297,7 +3297,7 @@ function commitRoot(
3297
3297
if ( enableSchedulingProfiler ) {
3298
3298
markCommitStopped ( ) ;
3299
3299
}
3300
- if ( enableSwipeTransition ) {
3300
+ if ( enableGestureTransition ) {
3301
3301
// Stop any gestures that were completed and is now being reverted.
3302
3302
if ( root . stoppingGestures !== null ) {
3303
3303
stopCompletedGestures ( root ) ;
@@ -3331,7 +3331,7 @@ function commitRoot(
3331
3331
const concurrentlyUpdatedLanes = getConcurrentlyUpdatedLanes ( ) ;
3332
3332
remainingLanes = mergeLanes ( remainingLanes , concurrentlyUpdatedLanes ) ;
3333
3333
3334
- if ( enableSwipeTransition && root . pendingGestures === null ) {
3334
+ if ( enableGestureTransition && root . pendingGestures === null ) {
3335
3335
// Gestures don't clear their lanes while the gesture is still active but it
3336
3336
// might not be scheduled to do any more renders and so we shouldn't schedule
3337
3337
// any more gesture lane work until a new gesture is scheduled.
@@ -3379,7 +3379,7 @@ function commitRoot(
3379
3379
pendingSuspendedCommitReason = suspendedCommitReason ;
3380
3380
}
3381
3381
3382
- if ( enableSwipeTransition && isGestureRender ( lanes ) ) {
3382
+ if ( enableGestureTransition && isGestureRender ( lanes ) ) {
3383
3383
// This is a special kind of render that doesn't commit regular effects.
3384
3384
commitGestureOnRoot (
3385
3385
root ,
@@ -3505,7 +3505,7 @@ function commitRoot(
3505
3505
}
3506
3506
3507
3507
let willStartViewTransition = shouldStartViewTransition ;
3508
- if ( enableSwipeTransition ) {
3508
+ if ( enableGestureTransition ) {
3509
3509
// Stop any gestures that were completed and is now being committed.
3510
3510
if ( root . stoppingGestures !== null ) {
3511
3511
stopCompletedGestures ( root ) ;
@@ -3944,7 +3944,7 @@ function commitGestureOnRoot(
3944
3944
}
3945
3945
3946
3946
function flushGestureMutations ( ) : void {
3947
- if ( ! enableSwipeTransition ) {
3947
+ if ( ! enableGestureTransition ) {
3948
3948
return ;
3949
3949
}
3950
3950
if ( pendingEffectsStatus !== PENDING_GESTURE_MUTATION_PHASE ) {
@@ -3973,7 +3973,7 @@ function flushGestureMutations(): void {
3973
3973
}
3974
3974
3975
3975
function flushGestureAnimations ( ) : void {
3976
- if ( ! enableSwipeTransition ) {
3976
+ if ( ! enableGestureTransition ) {
3977
3977
return ;
3978
3978
}
3979
3979
// If we get canceled before we start we might not have applied
0 commit comments