diff options
-rw-r--r-- | plugins/scale.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/scale.lua b/plugins/scale.lua index 78dc9e2..b63611c 100644 --- a/plugins/scale.lua +++ b/plugins/scale.lua @@ -50,7 +50,7 @@ local function set_scale(scale) local scrolls = {} for _, view in ipairs(core.root_view.root_node:get_children()) do local n = view:get_scrollable_size() - if n ~= math.huge and not view:is(CommandView) then + if n ~= math.huge and not view:is(CommandView) and n > view.size.y then scrolls[view] = view.scroll.y / (n - view.size.y) end end |