backport a bugfix from driver.love
Zooming out too far shouldn't crash the app.
This commit is contained in:
parent
831bd0eb91
commit
35919374e3
|
@ -6,8 +6,10 @@ on.keychord_press = function(chord, key)
|
|||
B()
|
||||
elseif chord == 'C--' then
|
||||
-- zoom out
|
||||
if (Viewport.zoom-0.1)*20 >= 1 then -- disallow font size of 0
|
||||
Viewport.zoom = Viewport.zoom-0.1
|
||||
B()
|
||||
end
|
||||
elseif chord == 'C-0' then
|
||||
-- reset zoom
|
||||
Viewport.zoom = 1.0
|
||||
|
|
Loading…
Reference in New Issue