Propogated mouse clicks correctly.

This commit is contained in:
Adam Harrison
2021-11-14 15:41:28 -05:00
parent ce2ec9f442
commit 4e313d9fc5
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -877,7 +877,7 @@ function RootView:on_mouse_pressed(button, x, y, clicks)
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
node.active_view:on_mouse_pressed(button, x, y, clicks)
return node.active_view:on_mouse_pressed(button, x, y, clicks)
end
end
end