Skip to content

Commit 1f07fbd

Browse files
committed
fix: 🐛 修复卷轴模式下放大/缩小操作的异常
#293 #295
1 parent d314640 commit 1f07fbd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/components/Manga/actions/scrollMode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,6 @@ export const handleScrollModeZoom = (dir: 'add' | 'sub') => {
6464
if (store.option.scrollMode.adjustToWidth === 'full') return;
6565

6666
if (store.option.scrollMode.adjustToWidth === 'disable' || isAbreastMode())
67-
setImgScale(0.05 * (dir === 'add' ? 1 : -1));
67+
setImgScale((val) => val + 0.05 * (dir === 'add' ? 1 : -1));
6868
else setAdjustToWidth((val) => val + 100 * (dir === 'add' ? 1 : -1));
6969
};

0 commit comments

Comments
 (0)