mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-25 08:41:05 +00:00
..
This commit is contained in:
parent
fc783ac3d3
commit
a42c93a52e
1 changed files with 3 additions and 5 deletions
|
|
@ -50,14 +50,12 @@ end
|
||||||
|
|
||||||
-- Mouse events
|
-- Mouse events
|
||||||
function Root:click(event, up)
|
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())
|
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
|
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
|
end
|
||||||
|
|
||||||
function Root:scroll(event, step)
|
function Root:scroll(event, step)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue