fix: make touchpad scrolling respect the system’s natural scrolling settings, closes #3127 (#3398)

This commit is contained in:
Huang Xin
2026-02-27 14:24:49 +08:00
committed by GitHub
parent 96c465931c
commit b50bc0b854
@@ -187,9 +187,9 @@ export const usePagination = (
viewPagination(viewRef.current, viewSettings, 'down');
} else if (deltaY < 0) {
viewPagination(viewRef.current, viewSettings, 'up');
} else if (deltaX > 0) {
viewPagination(viewRef.current, viewSettings, 'left');
} else if (deltaX < 0) {
viewPagination(viewRef.current, viewSettings, 'left');
} else if (deltaX > 0) {
viewPagination(viewRef.current, viewSettings, 'right');
}
} else if (msg.data.type === 'iframe-mouseup') {