Fixed propogation again.
This commit is contained in:
parent
4e313d9fc5
commit
7905ddd26f
|
@ -857,17 +857,18 @@ function RootView:on_mouse_pressed(button, x, y, clicks)
|
||||||
local div = self.root_node:get_divider_overlapping_point(x, y)
|
local div = self.root_node:get_divider_overlapping_point(x, y)
|
||||||
if div then
|
if div then
|
||||||
self.dragged_divider = div
|
self.dragged_divider = div
|
||||||
return
|
return true
|
||||||
end
|
end
|
||||||
local node = self.root_node:get_child_overlapping_point(x, y)
|
local node = self.root_node:get_child_overlapping_point(x, y)
|
||||||
if node.hovered_scroll_button > 0 then
|
if node.hovered_scroll_button > 0 then
|
||||||
node:scroll_tabs(node.hovered_scroll_button)
|
node:scroll_tabs(node.hovered_scroll_button)
|
||||||
return
|
return true
|
||||||
end
|
end
|
||||||
local idx = node:get_tab_overlapping_point(x, y)
|
local idx = node:get_tab_overlapping_point(x, y)
|
||||||
if idx then
|
if idx then
|
||||||
if button == "middle" or node.hovered_close == idx then
|
if button == "middle" or node.hovered_close == idx then
|
||||||
node:close_view(self.root_node, node.views[idx])
|
node:close_view(self.root_node, node.views[idx])
|
||||||
|
return true
|
||||||
else
|
else
|
||||||
if button == "left" then
|
if button == "left" then
|
||||||
self.dragged_node = { node = node, idx = idx, dragging = false, drag_start_x = x, drag_start_y = y}
|
self.dragged_node = { node = node, idx = idx, dragging = false, drag_start_x = x, drag_start_y = y}
|
||||||
|
|
Loading…
Reference in New Issue