From 485769ddd90013bffd9ff578559231a17f77ad7f Mon Sep 17 00:00:00 2001 From: Xaver Hugl Date: Wed, 10 Apr 2024 13:24:39 +0200 Subject: [PATCH] plugins/zoom: limit the maximum zoom value to 100 Accidental changes in zoom can become very time consuming to undo otherwise. With a value of 100, you can still zoom in far enough to only see a few pixels on the screen, so it shouldn't break any actual use cases BUG: 485192 --- src/plugins/zoom/zoom.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/zoom/zoom.cpp b/src/plugins/zoom/zoom.cpp index e9ee2c081e..83b0bef4e1 100644 --- a/src/plugins/zoom/zoom.cpp +++ b/src/plugins/zoom/zoom.cpp @@ -456,6 +456,7 @@ void ZoomEffect::zoomIn(double to) } else { target_zoom = to; } + target_zoom = std::min(target_zoom, 100.0); if (!polling) { polling = true; effects->startMousePolling();