Skip to content

Commit e0de44f

Browse files
authored
Merge pull request #11 from p-x9/fix/set-window-scene
fix to set window scene correctly
2 parents b36c502 + ad6a04a commit e0de44f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/TouchTracker/Cocoa/TouchTrackingUIView.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public class TouchTrackingUIView: UIView {
139139
window.location = location
140140
window.center = .init(x: location.x + offset.x,
141141
y: location.y + offset.y)
142-
window.windowScene = window.windowScene
142+
window.windowScene = self.window?.windowScene
143143
window.isHidden = false
144144
}
145145
}

0 commit comments

Comments
 (0)