mirror of
https://github.com/Myxelium/Bridge-Multi.git
synced 2026-04-11 06:09:39 +00:00
Preview starts on preview start time
This commit is contained in:
@@ -42,7 +42,10 @@ export class ChartSidebarPreviewComponent implements OnInit, OnDestroy {
|
|||||||
private settingsService: SettingsService,
|
private settingsService: SettingsService,
|
||||||
) { }
|
) { }
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
this.seekBar = new FormControl<number>(0, { nonNullable: true })
|
this.seekBar = new FormControl<number>(
|
||||||
|
(100 * (this.selectedChart.preview_start_time ?? 0)) / (this.selectedChart.song_length ?? 5 * 60 * 1000),
|
||||||
|
{ nonNullable: true },
|
||||||
|
)
|
||||||
this.seekBar.valueChanges
|
this.seekBar.valueChanges
|
||||||
.pipe(
|
.pipe(
|
||||||
throttleTime(30, undefined, { leading: true, trailing: true }),
|
throttleTime(30, undefined, { leading: true, trailing: true }),
|
||||||
|
|||||||
Reference in New Issue
Block a user