Skip to content

Commit 0978cd6

Browse files
committed
Add worklet
1 parent 12ea702 commit 0978cd6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/panningViews/panningUtil.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,7 @@ function checkThresholds(event: PanGestureHandlerEventExtra,
146146
directions: PanningDirections[],
147147
velocity: number,
148148
threshold: Required<PanDismissThreshold>) {
149+
'worklet';
149150
const velocityPassedThreshold = velocity > threshold.velocity;
150151
const xPassedThreshold =
151152
(directions.includes(PanningDirections.RIGHT) && event.translationX > threshold.x) ||

0 commit comments

Comments
 (0)