Skip to content

Commit

Permalink
Merge pull request #20 from p-x9/fix/landscape-marker-position
Browse files Browse the repository at this point in the history
fix marker position in landscape mode
  • Loading branch information
p-x9 authored May 10, 2023
2 parents 910fdd7 + 2bd44c0 commit 5024e1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/TouchTracker/Cocoa/TouchTrackingUIView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,8 @@ public class TouchTrackingUIView: UIView {
window.center = .init(x: location.x + offset.x,
y: location.y + offset.y)
window.windowScene = self.window?.windowScene
// WORKAROUND: Apply changes of orientation
window.rootViewController = .init()
window.isHidden = false
}
}
Expand Down

0 comments on commit 5024e1e

Please sign in to comment.