From b408f149568ffb72d9627957b47a8ac465cad652 Mon Sep 17 00:00:00 2001 From: Louis Pontoise Date: Mon, 5 Oct 2020 19:37:30 +0900 Subject: [PATCH] fix: key repeat rate was too fast on high fps monitors (closes #633) --- src/logic/KeyRepeatTimer.swift | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/logic/KeyRepeatTimer.swift b/src/logic/KeyRepeatTimer.swift index 01357160..73e65b16 100644 --- a/src/logic/KeyRepeatTimer.swift +++ b/src/logic/KeyRepeatTimer.swift @@ -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 } }