This commit is contained in:
sxyazi 2026-04-22 19:33:54 +08:00
parent fc783ac3d3
commit a42c93a52e
No known key found for this signature in database

View file

@ -50,14 +50,12 @@ end
-- Mouse events
function Root:click(event, up)
if tostring(cx.layer) ~= "mgr" then
return
end
local c = Root._dragging or ya.child_at(ui.Rect { x = event.x, y = event.y }, self:reflow())
Root._dragging = not up and c or nil
return c and c:click(event, up)
if tostring(cx.layer) == "mgr" then
return c and c:click(event, up)
end
end
function Root:scroll(event, step)