Compare commits
1 Commits
amiga2.1
...
fix-invisi
Author | SHA1 | Date |
---|---|---|
Francesco Abbate | 1f276c0bcb |
|
@ -240,12 +240,15 @@ end
|
||||||
|
|
||||||
function Node:get_divider_overlapping_point(px, py)
|
function Node:get_divider_overlapping_point(px, py)
|
||||||
if self.type ~= "leaf" then
|
if self.type ~= "leaf" then
|
||||||
local p = 6
|
local axis = self.type == "hsplit" and "x" or "y"
|
||||||
local x, y, w, h = self:get_divider_rect()
|
if self.a:is_resizable(axis) and self.b:is_resizable(axis) then
|
||||||
x, y = x - p, y - p
|
local p = 6
|
||||||
w, h = w + p * 2, h + p * 2
|
local x, y, w, h = self:get_divider_rect()
|
||||||
if px > x and py > y and px < x + w and py < y + h then
|
x, y = x - p, y - p
|
||||||
return self
|
w, h = w + p * 2, h + p * 2
|
||||||
|
if px > x and py > y and px < x + w and py < y + h then
|
||||||
|
return self
|
||||||
|
end
|
||||||
end
|
end
|
||||||
return self.a:get_divider_overlapping_point(px, py)
|
return self.a:get_divider_overlapping_point(px, py)
|
||||||
or self.b:get_divider_overlapping_point(px, py)
|
or self.b:get_divider_overlapping_point(px, py)
|
||||||
|
@ -823,10 +826,7 @@ function RootView:on_mouse_moved(x, y, dx, dy)
|
||||||
if node and node:get_scroll_button_index(x, y) then
|
if node and node:get_scroll_button_index(x, y) then
|
||||||
core.request_cursor("arrow")
|
core.request_cursor("arrow")
|
||||||
elseif div then
|
elseif div then
|
||||||
local axis = (div.type == "hsplit" and "x" or "y")
|
core.request_cursor(div.type == "hsplit" and "sizeh" or "sizev")
|
||||||
if div.a:is_resizable(axis) and div.b:is_resizable(axis) then
|
|
||||||
core.request_cursor(div.type == "hsplit" and "sizeh" or "sizev")
|
|
||||||
end
|
|
||||||
elseif tab_index then
|
elseif tab_index then
|
||||||
core.request_cursor("arrow")
|
core.request_cursor("arrow")
|
||||||
elseif node then
|
elseif node then
|
||||||
|
|
Loading…
Reference in New Issue