Skip to content

Commit

Permalink
Merge pull request #156 from FelixZY/fzy/scroll-x/1
Browse files Browse the repository at this point in the history
feat: support horizontal scrolling
  • Loading branch information
1ilit authored Jul 18, 2024
2 parents 4d0983b + 8a736b5 commit 9393f5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/EditorCanvas/Canvas.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ export default function Canvas() {
setTransform((prev) => ({
...prev,
pan: {
...prev.pan,
x: prev.pan.x + e.deltaX / prev.zoom,
y: prev.pan.y + e.deltaY / prev.zoom,
},
}));
Expand Down

0 comments on commit 9393f5c

Please sign in to comment.