Rearranged things to make a bit more sense.

This commit is contained in:
Adam Harrison
2021-11-14 15:41:28 -05:00
parent 7905ddd26f
commit 6bdcfc824d
4 changed files with 18 additions and 12 deletions
+1
View File
@@ -874,6 +874,7 @@ function RootView:on_mouse_pressed(button, x, y, clicks)
self.dragged_node = { node = node, idx = idx, dragging = false, drag_start_x = x, drag_start_y = y}
end
node:set_active_view(node.views[idx])
return true
end
elseif not self.dragged_node then -- avoid sending on_mouse_pressed events when dragging tabs
core.set_active_view(node.active_view)