fix: key repeat rate was too fast on high fps monitors (closes #633)

This commit is contained in:
Louis Pontoise authored and lwouis committed 2020-10-07 02:10:30 +09:00
1 parent 84175640f7
commit b408f14956
1 file changed
+1 -2
+1 -2
View File
@@ -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
}
}