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 6, 2020
1 parent 8417564 commit b408f14
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 b408f14

Please sign in to comment.