fix(ui): fix canvas ts comparison (#1851)

Co-authored-by: nick-delirium <nikita@openreplay.com>
This commit is contained in:
Shekar Siri 2024-01-23 17:54:31 +01:00 committed by GitHub
parent 9453d25213
commit a808200526
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,7 +39,7 @@ export default class CanvasManager {
}
move(t: number) {
if (t - this.lastTs < 100) return;
if (Math.abs(t - this.lastTs) < 100) return;
this.lastTs = t;
const playTime = t - this.delta
if (playTime > 0) {