From 62c414745e246ad003e6a05c4fcec654aa72992a Mon Sep 17 00:00:00 2001 From: alesmaye Date: Mon, 2 Sep 2024 15:53:05 +0200 Subject: [PATCH] code fix --- src/ts/components/touchcontroloverlay.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ts/components/touchcontroloverlay.ts b/src/ts/components/touchcontroloverlay.ts index 6f130876a..efa09b0bb 100644 --- a/src/ts/components/touchcontroloverlay.ts +++ b/src/ts/components/touchcontroloverlay.ts @@ -59,7 +59,6 @@ export class TouchControlOverlay extends Container { onSeekForward: new EventDispatcher(), }; - private centeredElementPlaceholder: SmallCenteredPlaybackToggleButton | LoadingIcon; private playbackToggleButton: SmallCenteredPlaybackToggleButton; private loadingIcon: LoadingIcon; private seekForwardLabel: Label; @@ -79,7 +78,6 @@ export class TouchControlOverlay extends Container { }); this.loadingIcon = new LoadingIcon(); - this.centeredElementPlaceholder = this.playbackToggleButton; this.seekForwardLabel = new Label({text: '', for: this.getConfig().id, cssClass: 'seek-forward-label', hidden: true}); this.seekBackwardLabel = new Label({text: '', for: this.getConfig().id, cssClass: 'seek-backward-label', hidden: true}); @@ -89,7 +87,7 @@ export class TouchControlOverlay extends Container { acceptsTouchWithUiHidden: true, seekTime: 10, seekDoubleTapMargin: 15, - components: [this.centeredElementPlaceholder, this.seekForwardLabel, this.seekBackwardLabel], + components: [this.playbackToggleButton, this.seekForwardLabel, this.seekBackwardLabel], }, this.config); } @@ -110,7 +108,7 @@ export class TouchControlOverlay extends Container { this.updateComponents(); }; - if (this.loadingIcon.isSpinning) { + if (this.loadingIcon.isSpinning()) { showLoadingIcon(); }