Skip to content

Commit 903644f

Browse files
add _event to onGestureEvent onStart as first param to solve the error that says cursorMove was running under diffrent thread
1 parent ba225a5 commit 903644f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/component/Cursor.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const Cursor = ({
8282
PanGestureHandlerGestureEvent,
8383
Offset
8484
>({
85-
onStart: ({}, ctx) => {
85+
onStart: (_event, ctx) => {
8686
ctx.x = translation.x.value;
8787
ctx.y = translation.y.value;
8888
activeStatusTransition.value = withSpring(1);

0 commit comments

Comments
 (0)