diff --git a/data/core/rootview.lua b/data/core/rootview.lua index 49da2923..e497919e 100644 --- a/data/core/rootview.lua +++ b/data/core/rootview.lua @@ -900,9 +900,7 @@ function RootView:on_mouse_pressed(button, x, y, clicks) end elseif not self.dragged_node then -- avoid sending on_mouse_pressed events when dragging tabs core.set_active_view(node.active_view) - if not self.on_view_mouse_pressed(button, x, y, clicks) then - return node.active_view:on_mouse_pressed(button, x, y, clicks) - end + return self.on_view_mouse_pressed(button, x, y, clicks) or node.active_view:on_mouse_pressed(button, x, y, clicks) end end