Port window hit-test hole so PassthruCentralNode doesn't capture the mouse

This commit is contained in:
4DBug
2026-10-08 09:15:32 -05:00
parent a083d0c9bc
commit 1dd48be9b8
3 changed files with 31 additions and 2 deletions
+4 -1
View File
@@ -7387,7 +7387,10 @@ local function FindHoveredWindowEx(pos, find_first_and_in_any_viewport)
end
if window.HitTestHoleSize.x ~= 0 then
-- TODO: hit test hole
local hx, hy = window.Pos.x + window.HitTestHoleOffset.x, window.Pos.y + window.HitTestHoleOffset.y
if pos.x >= hx and pos.y >= hy and pos.x < hx + window.HitTestHoleSize.x and pos.y < hy + window.HitTestHoleSize.y then
break -- continue
end
end
if find_first_and_in_any_viewport then