From bd825fc11d09d56fdb081c1e9108a668c15cb0b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20=C5=A0imon=C3=ADk?= <32575328+ryzizub@users.noreply.github.com> Date: Mon, 2 Sep 2024 21:38:36 +0200 Subject: [PATCH] fix: reverse scrolling on mouse (#46) --- .../editor_screen/widgets/selection_canvas/canvas_board.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fire_atlas_editor/lib/screens/editor_screen/widgets/selection_canvas/canvas_board.dart b/fire_atlas_editor/lib/screens/editor_screen/widgets/selection_canvas/canvas_board.dart index ef0d6db..467caa9 100644 --- a/fire_atlas_editor/lib/screens/editor_screen/widgets/selection_canvas/canvas_board.dart +++ b/fire_atlas_editor/lib/screens/editor_screen/widgets/selection_canvas/canvas_board.dart @@ -219,8 +219,8 @@ class CanvasBoardState extends State { onPointerSignal: (s) { if (s is PointerScrollEvent) { setState(() { - _translateX += s.scrollDelta.dx; - _translateY += s.scrollDelta.dy; + _translateX -= s.scrollDelta.dx; + _translateY -= s.scrollDelta.dy; }); } },