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
This commit is contained in:
Xaver Hugl 2024-04-10 13:24:39 +02:00
parent cfe001df6f
commit 485769ddd9

View file

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