From 2a00d41e953f157f984f4ed5e18a589cf272dc57 Mon Sep 17 00:00:00 2001 From: Thanos Kamber <36815670+TehThanos@users.noreply.github.com> Date: Fri, 7 May 2021 02:31:07 +0300 Subject: [PATCH] Changed the default behaviour in Windows and Linux This commit makes the default behaviour for changing the brush size to be scroll up to increase brush size, this should already be the case in macOS. Note: It's correct in Windows and Linux, but I don't have a mac to test it with. --- src/app/ui/editor/state_with_wheel_behavior.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/app/ui/editor/state_with_wheel_behavior.cpp b/src/app/ui/editor/state_with_wheel_behavior.cpp index 73bc08763..9d70c8331 100644 --- a/src/app/ui/editor/state_with_wheel_behavior.cpp +++ b/src/app/ui/editor/state_with_wheel_behavior.cpp @@ -190,6 +190,10 @@ bool StateWithWheelBehavior::onMouseWheel(Editor* editor, MouseMessage* msg) ToolPreferences::Brush& brush = Preferences::instance().tool(tool).brush; +#if defined(_WIN32) || defined(__linux__) + dz = -dz; +#endif + int newBrushSize; if (Preferences::instance().editor.invertBrushSizeScroll()) newBrushSize = int(brush.size()-dz);