Skip to content

Commit

Permalink
fix: reverse scrolling on mouse (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryzizub authored Sep 2, 2024
1 parent 881e626 commit bd825fc
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ class CanvasBoardState extends State<CanvasBoard> {
onPointerSignal: (s) {
if (s is PointerScrollEvent) {
setState(() {
_translateX += s.scrollDelta.dx;
_translateY += s.scrollDelta.dy;
_translateX -= s.scrollDelta.dx;
_translateY -= s.scrollDelta.dy;
});
}
},
Expand Down

0 comments on commit bd825fc

Please sign in to comment.