From c94d21fc533540147cefd56a515f70c427619295 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Sun, 6 Mar 2022 15:51:06 +0100 Subject: [PATCH] Fix end time calculation with with non-1x speed --- src/widget.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/widget.js b/src/widget.js index 4218db1a..c9ef2518 100644 --- a/src/widget.js +++ b/src/widget.js @@ -345,7 +345,8 @@ class ClapperWidget extends Gtk.Grid const currTime = GLib.DateTime.new_now_local(); const endTime = currTime.add_seconds( - this.controls.positionAdjustment.get_upper() - this.controls.currentPosition + (this.controls.positionAdjustment.get_upper() - this.controls.currentPosition) + / this.controls.elapsedButton.speedScale.get_value() ); const nextUpdate = this.revealerTop.setTimes(currTime, endTime, this.isSeekable);