aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2021-11-23 21:56:07 -0500
committerAdam Harrison <adamdharrison@gmail.com>2021-11-23 21:56:07 -0500
commit463605ff41a844d3b301a5fe21f6f27ca5e510e8 (patch)
tree1e7ebd98dd5f799e04127d95ae20900cfb0c63e5
parent64f66e5d1e22d8ea38fdc7b8830cfe4b4c008c06 (diff)
downloadlite-xl-463605ff41a844d3b301a5fe21f6f27ca5e510e8.tar.gz
lite-xl-463605ff41a844d3b301a5fe21f6f27ca5e510e8.zip
Fixed event propogation.
-rw-r--r--data/core/rootview.lua4
1 files changed, 1 insertions, 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