Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix .zero to 1.0 ensure minimal operation through the scale factor.
  • Loading branch information
hyun99999 committed Oct 18, 2023
commit b2ff6d5a3d4c66e605db6eb1ac72f6c2404b4ff8
2 changes: 1 addition & 1 deletion Sources/Impl/Coordinates.swift
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ private func getDisplayScale() -> CGFloat {
#if os(iOS) || os(tvOS)
if #available(iOS 13.0, tvOS 13.0, *) {
let windowScene = UIApplication.shared.connectedScenes.first as? UIWindowScene
return windowScene?.screen.scale ?? .zero
return windowScene?.screen.scale ?? 1.0
} else {
return UIScreen.main.scale
}
Expand Down