Do not do fast seeks when seeking to chapter

Fast seeks are always a little off from requested time. When seeking to chapter position, do it by using a normal seek and restore user selected fast seeks afterwards.
This commit is contained in:
Rafostar
2021-01-13 18:49:10 +01:00
parent df4678d930
commit 5d0876bbf7
3 changed files with 39 additions and 6 deletions

View File

@@ -388,12 +388,12 @@ class ClapperWidget extends Gtk.Grid
return;
}
/* FIXME: Use higher precision for position scale */
const pos = Math.floor(start / 1000000) / 1000;
const tags = subentry.get_tags();
this.controls.positionScale.add_mark(pos, Gtk.PositionType.TOP, null);
this.controls.positionScale.add_mark(pos, Gtk.PositionType.BOTTOM, null);
const tags = subentry.get_tags();
if(!tags) {
debug('could not obtain toc subentry tags');
return;