mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 07:42:23 +02:00
Merge pull request #226 from Rafostar/speed-fix
Fix end time calculation with with non-1x speed
This commit is contained in:
@@ -345,7 +345,8 @@ class ClapperWidget extends Gtk.Grid
|
|||||||
|
|
||||||
const currTime = GLib.DateTime.new_now_local();
|
const currTime = GLib.DateTime.new_now_local();
|
||||||
const endTime = currTime.add_seconds(
|
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);
|
const nextUpdate = this.revealerTop.setTimes(currTime, endTime, this.isSeekable);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user