Highlight Button now persists

This commit is contained in:
FlorianZahn
2021-09-20 15:32:31 +02:00
parent f219122f00
commit 22ecc05a55

View File

@@ -84,7 +84,7 @@ export class SkipButtonControlBar {
startTimer(): void {
this.stopTimer();
this.timeout = setTimeout(() => this.disable(), Math.max(Config.config.skipNoticeDuration, this.duration) * 1000);
this.timeout = setTimeout(() => this.innerTextVanish(), Math.max(Config.config.skipNoticeDuration, this.duration) * 1000);
}
disable(): void {
@@ -94,7 +94,12 @@ export class SkipButtonControlBar {
toggleSkip(): void {
this.skip(this.segment);
this.disable();
this.innerTextVanish();
}
innerTextVanish(): void {
this.textContainer.innerText = "";
this.chapterText?.classList?.remove("hidden");
}
}