Rearranged things to make a bit more sense.
This commit is contained in:
@@ -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