Fixed contextmenu to play nice with dragging nodes.
This commit is contained in:
parent
e070dbebc1
commit
aed643893e
|
@ -246,7 +246,7 @@ function RootView:on_mouse_pressed(button, x,y, clicks)
|
||||||
if button == "middle" or node.hovered_close == idx then
|
if button == "middle" or node.hovered_close == idx then
|
||||||
node:close_view(self.root_node, node.views[idx])
|
node:close_view(self.root_node, node.views[idx])
|
||||||
else
|
else
|
||||||
self.dragged_node = idx
|
self.dragged_node = { node, idx or #node.views }
|
||||||
node:set_active_view(node.views[idx])
|
node:set_active_view(node.views[idx])
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue