lower timer to 60fps

This commit is contained in:
Hailey
2024-04-11 20:49:26 -07:00
parent 54168e11b6
commit 12003627e6
@@ -129,9 +129,9 @@ class ExpoScrollForwarderView: ExpoView, UIGestureRecognizerDelegate {
}
var animTranslation = -translation
self.animTimer = Timer.scheduledTimer(withTimeInterval: 1.0 / 120, repeats: true) { timer in
self.animTimer = Timer.scheduledTimer(withTimeInterval: 1.0 / 60, repeats: true) { timer in
velocity *= 0.9875
animTranslation = (-velocity / 120) + animTranslation
animTranslation = (-velocity / 60) + animTranslation
let nextOffset = self.dampenOffset(animTranslation + self.initialOffset)