Skip to content

Commit 5024e1e

Browse files
authored
Merge pull request #20 from p-x9/fix/landscape-marker-position
fix marker position in landscape mode
2 parents 910fdd7 + 2bd44c0 commit 5024e1e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Sources/TouchTracker/Cocoa/TouchTrackingUIView.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ public class TouchTrackingUIView: UIView {
177177
window.center = .init(x: location.x + offset.x,
178178
y: location.y + offset.y)
179179
window.windowScene = self.window?.windowScene
180+
// WORKAROUND: Apply changes of orientation
181+
window.rootViewController = .init()
180182
window.isHidden = false
181183
}
182184
}

0 commit comments

Comments
 (0)