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.
This commit is contained in:
Thanos Kamber 2021-05-07 02:31:07 +03:00 committed by David Capello
parent b9dfad6b6b
commit 2a00d41e95

View File

@ -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);