Fixed event propogation.
This commit is contained in:
parent
64f66e5d1e
commit
463605ff41
|
@ -900,9 +900,7 @@ function RootView:on_mouse_pressed(button, x, y, clicks)
|
||||||
end
|
end
|
||||||
elseif not self.dragged_node then -- avoid sending on_mouse_pressed events when dragging tabs
|
elseif not self.dragged_node then -- avoid sending on_mouse_pressed events when dragging tabs
|
||||||
core.set_active_view(node.active_view)
|
core.set_active_view(node.active_view)
|
||||||
if not self.on_view_mouse_pressed(button, x, y, clicks) then
|
return self.on_view_mouse_pressed(button, x, y, clicks) or node.active_view:on_mouse_pressed(button, x, y, clicks)
|
||||||
return node.active_view:on_mouse_pressed(button, x, y, clicks)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue