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:
parent
cfe001df6f
commit
485769ddd9
1 changed files with 1 additions and 0 deletions
|
@ -456,6 +456,7 @@ void ZoomEffect::zoomIn(double to)
|
||||||
} else {
|
} else {
|
||||||
target_zoom = to;
|
target_zoom = to;
|
||||||
}
|
}
|
||||||
|
target_zoom = std::min(target_zoom, 100.0);
|
||||||
if (!polling) {
|
if (!polling) {
|
||||||
polling = true;
|
polling = true;
|
||||||
effects->startMousePolling();
|
effects->startMousePolling();
|
||||||
|
|
Loading…
Reference in a new issue