mirror of
https://github.com/ajayyy/SponsorBlock.git
synced 2025-12-06 11:37:02 +03:00
Preview skip-lenth dependant on playbackspeed (#949)
* Preview button playback speed dependant Pressing "Preview" will now jump 2 seconds in front of the segment start time, depending on the playback speed.
This commit is contained in:
@@ -380,7 +380,7 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo
|
||||
|
||||
const skipTime = sponsorTimes[index].segment[0];
|
||||
|
||||
this.props.contentContainer().previewTime(skipTime - 2);
|
||||
this.props.contentContainer().previewTime(skipTime - (2 * this.props.contentContainer().v.playbackRate));
|
||||
}
|
||||
|
||||
inspectTime(): void {
|
||||
|
||||
Reference in New Issue
Block a user