Skip to content

Commit

Permalink
fix: key repeat rate was too fast on high fps monitors (closes #633)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwouis committed Oct 5, 2020
1 parent 04c0c4b commit 7dbdc3e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/logic/KeyRepeatTimer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ class KeyRepeatTimer {
}

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

0 comments on commit 7dbdc3e

Please sign in to comment.