Port window hit-test hole so PassthruCentralNode doesn't capture the mouse
This commit is contained in:
+4
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user