From 463605ff41a844d3b301a5fe21f6f27ca5e510e8 Mon Sep 17 00:00:00 2001 From: Adam Harrison Date: Tue, 23 Nov 2021 21:56:07 -0500 Subject: [PATCH] Fixed event propogation. --- data/core/rootview.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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