Skip to content

Commit b408f14

Browse files
committed
fix: key repeat rate was too fast on high fps monitors (closes #633)
1 parent 8417564 commit b408f14

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/logic/KeyRepeatTimer.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ class KeyRepeatTimer {
4141
}
4242

4343
private static func ticksToSeconds(_ appleNumber: String) -> Double {
44-
let refreshRate = NSScreen.preferred().refreshRate() ?? 60
45-
return Double(appleNumber)! / refreshRate
44+
return Double(appleNumber)! / 60
4645
}
4746
}

0 commit comments

Comments
 (0)