Rearranged things to make a bit more sense.
This commit is contained in:
1 parent
7905ddd26f
commit
6bdcfc824d
4 files changed
+18
-12
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user