From 263197eb8dd2521d6e01828ef5c14a55be896369 Mon Sep 17 00:00:00 2001 From: Insality Date: Sun, 7 Apr 2019 15:14:06 +0300 Subject: [PATCH] disable scroll if scroll zone <= items zone --- druid/base/scroll.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/druid/base/scroll.lua b/druid/base/scroll.lua index af09c81..fd56fe2 100644 --- a/druid/base/scroll.lua +++ b/druid/base/scroll.lua @@ -376,6 +376,8 @@ end --- Set the scroll possibly area function M.set_border(self, border) self.border = border + border.z = math.max(border.x, border.z) + border.w = math.max(border.y, border.w) self.can_x = (border.x ~= border.z) self.can_y = (border.y ~= border.w) end