Fixed contextmenu to play nice with dragging nodes.

This commit is contained in:
Adam Harrison 2021-06-14 09:23:04 -04:00
parent e070dbebc1
commit aed643893e
1 changed files with 1 additions and 1 deletions

View File

@ -246,7 +246,7 @@ function RootView:on_mouse_pressed(button, x,y, clicks)
if button == "middle" or node.hovered_close == idx then
node:close_view(self.root_node, node.views[idx])
else
self.dragged_node = idx
self.dragged_node = { node, idx or #node.views }
node:set_active_view(node.views[idx])
end
else