Skip to content

view: Fix bug when zooming in/out

James Westman requested to merge (removed):fix-zoom into master

The zoom_in function had a guard preventing from zooming when already at level 0 (which would cause an underflow), but this guard needs to be in zoom_out instead.

Fixes bugs where, when you're all the way zoomed out, 1) you can't zoom in, and 2) you can zoom out and it will wrap around to the highest zoom level.

Merge request reports