From e45b3e2bc0fcc49647a38e34c64af357d3d36973 Mon Sep 17 00:00:00 2001 From: rxi Date: Sat, 23 May 2020 09:40:42 +0100 Subject: [PATCH] Minor renaming in rootview --- data/core/rootview.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/data/core/rootview.lua b/data/core/rootview.lua index 859b41c6..97fc1c1e 100644 --- a/data/core/rootview.lua +++ b/data/core/rootview.lua @@ -435,13 +435,13 @@ end function RootView:on_mouse_moved(x, y, dx, dy) if self.dragged_divider then - local div = self.dragged_divider - if div.type == "hsplit" then - div.divider = div.divider + dx / div.size.x + local node = self.dragged_divider + if node.type == "hsplit" then + node.divider = node.divider + dx / node.size.x else - div.divider = div.divider + dy / div.size.y + node.divider = node.divider + dy / node.size.y end - div.divider = common.clamp(div.divider, 0.01, 0.99) + node.divider = common.clamp(node.divider, 0.01, 0.99) return end