diff --git a/src/components/App.tsx b/src/components/App.tsx index d1b3edf2..0857ca52 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -2567,6 +2567,14 @@ class App extends React.Component { return; } + // scroll horizontally when shift pressed + if (event.shiftKey) { + this.setState(({ zoom, scrollX }) => ({ + scrollX: normalizeScroll(scrollX - deltaY / zoom), + })); + return; + } + this.setState(({ zoom, scrollX, scrollY }) => ({ scrollX: normalizeScroll(scrollX - deltaX / zoom), scrollY: normalizeScroll(scrollY - deltaY / zoom),