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

This commit is contained in:
4DBug committed 2026-10-08 09:15:32 -05:00
1 parent 214a230588
commit f93502a93c
3 files changed
+31 -2

No files matched your search

+4 -1
View File
@@ -7376,7 +7376,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