Skip to content

Commit 6cb78bb

Browse files
committed
fix: horizontal image cases
remove animation from offestX.value to handle horizontal image cases
1 parent 9964278 commit 6cb78bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/MultiGestureCanvas/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function MultiGestureCanvas({
129129
pinchScale.value = 1;
130130

131131
if (animated) {
132-
offsetX.value = withSpring(0, SPRING_CONFIG);
132+
offsetX.value = 0;
133133
offsetY.value = 0;
134134
panTranslateX.value = withSpring(0, SPRING_CONFIG);
135135
panTranslateY.value = withSpring(0, SPRING_CONFIG);

0 commit comments

Comments
 (0)