Minor renaming in rootview

This commit is contained in:
rxi 2020-05-23 09:40:42 +01:00
parent e6a2770e2e
commit e45b3e2bc0
1 changed files with 5 additions and 5 deletions

View File

@ -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