diff options
Diffstat (limited to 'Userland/Applications/PixelPaint/Tools/ZoomTool.cpp')
-rw-r--r-- | Userland/Applications/PixelPaint/Tools/ZoomTool.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Userland/Applications/PixelPaint/Tools/ZoomTool.cpp b/Userland/Applications/PixelPaint/Tools/ZoomTool.cpp index d7792db0e4..b1ca6dc28f 100644 --- a/Userland/Applications/PixelPaint/Tools/ZoomTool.cpp +++ b/Userland/Applications/PixelPaint/Tools/ZoomTool.cpp @@ -27,7 +27,8 @@ void ZoomTool::on_mousedown(Layer*, MouseEvent& event) return; auto scale_factor = (raw_event.button() == GUI::MouseButton::Primary) ? m_sensitivity : -m_sensitivity; - m_editor->scale_centered_on_position(raw_event.position(), scale_factor); + auto new_scale = AK::exp2(scale_factor); + m_editor->scale_centered(new_scale, raw_event.position()); } GUI::Widget* ZoomTool::get_properties_widget() |