Skip to content

Commit 5bb170c

Browse files
committed
Fix hitest order
1 parent 6754a6a commit 5bb170c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/GateEngine/UI/View.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ extension View {
699699
guard userInteractionEnabled else {return nil}
700700
let frame = self.computedWindowSpaceFrame.clamped(within: clipRect)
701701
if frame.contains(position) {
702-
for subview in subviews {
702+
for subview in subviews.reversed() {
703703
if let hit = subview.hitTest(position, clipRect: frame) {
704704
return hit
705705
}

0 commit comments

Comments
 (0)