PixelPaint: Allow repeated zooming with the zoom tool

Previously, the zoom tool only allowed the user to zoom in or out
once, as it didn't take account of the current zoom level.
This commit is contained in:
Tim Ledbetter 2023-01-05 15:35:07 +00:00 committed by Jelle Raaijmakers
commit fc5bcd8476
Notes: sideshowbarker 2024-07-17 20:22:04 +09:00
2 changed files with 5 additions and 5 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2021-2022, the SerenityOS developers.
* Copyright (c) 2021-2023, the SerenityOS developers.
*
* SPDX-License-Identifier: BSD-2-Clause
*/
@ -25,7 +25,7 @@ private:
virtual StringView tool_name() const override { return "Zoom Tool"sv; }
RefPtr<GUI::Widget> m_properties_widget;
double m_sensitivity { 0.5 };
float m_sensitivity { 0.5f };
};
}