Skip to content

Commit 9c0ec6e

Browse files
committed
fix: drag模式下,修复旋转后保持缩放比例
1 parent ef4af1f commit 9c0ec6e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/react-photo-view/src/PhotoBox.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ export default function PhotoBox({
196196
updateState({
197197
rotate: current,
198198
...getSuitableImageSize(isDragMode, naturalWidth, naturalHeight, current),
199+
scale,
199200
})
200201
}
201202
},

0 commit comments

Comments
 (0)