We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d314640 commit 1f07fbdCopy full SHA for 1f07fbd
1 file changed
src/components/Manga/actions/scrollMode.ts
@@ -64,6 +64,6 @@ export const handleScrollModeZoom = (dir: 'add' | 'sub') => {
64
if (store.option.scrollMode.adjustToWidth === 'full') return;
65
66
if (store.option.scrollMode.adjustToWidth === 'disable' || isAbreastMode())
67
- setImgScale(0.05 * (dir === 'add' ? 1 : -1));
+ setImgScale((val) => val + 0.05 * (dir === 'add' ? 1 : -1));
68
else setAdjustToWidth((val) => val + 100 * (dir === 'add' ? 1 : -1));
69
};
0 commit comments