1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 05:27:46 +00:00

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
parent a9839d7ac5
commit fc5bcd8476
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 };
};
}