Minor renaming in rootview
This commit is contained in:
parent
e6a2770e2e
commit
e45b3e2bc0
|
@ -435,13 +435,13 @@ end
|
||||||
|
|
||||||
function RootView:on_mouse_moved(x, y, dx, dy)
|
function RootView:on_mouse_moved(x, y, dx, dy)
|
||||||
if self.dragged_divider then
|
if self.dragged_divider then
|
||||||
local div = self.dragged_divider
|
local node = self.dragged_divider
|
||||||
if div.type == "hsplit" then
|
if node.type == "hsplit" then
|
||||||
div.divider = div.divider + dx / div.size.x
|
node.divider = node.divider + dx / node.size.x
|
||||||
else
|
else
|
||||||
div.divider = div.divider + dy / div.size.y
|
node.divider = node.divider + dy / node.size.y
|
||||||
end
|
end
|
||||||
div.divider = common.clamp(div.divider, 0.01, 0.99)
|
node.divider = common.clamp(node.divider, 0.01, 0.99)
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue