Skip to content

Commit

Permalink
code fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alesmaye committed Sep 2, 2024
1 parent 62c184b commit 62c4147
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/ts/components/touchcontroloverlay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export class TouchControlOverlay extends Container<TouchControlOverlayConfig> {
onSeekForward: new EventDispatcher<TouchControlOverlay, NoArgs>(),
};

private centeredElementPlaceholder: SmallCenteredPlaybackToggleButton | LoadingIcon;
private playbackToggleButton: SmallCenteredPlaybackToggleButton;
private loadingIcon: LoadingIcon;
private seekForwardLabel: Label<LabelConfig>;
Expand All @@ -79,7 +78,6 @@ export class TouchControlOverlay extends Container<TouchControlOverlayConfig> {
});

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});
Expand All @@ -89,7 +87,7 @@ export class TouchControlOverlay extends Container<TouchControlOverlayConfig> {
acceptsTouchWithUiHidden: true,
seekTime: 10,
seekDoubleTapMargin: 15,
components: [this.centeredElementPlaceholder, this.seekForwardLabel, this.seekBackwardLabel],
components: [this.playbackToggleButton, this.seekForwardLabel, this.seekBackwardLabel],
}, this.config);
}

Expand All @@ -110,7 +108,7 @@ export class TouchControlOverlay extends Container<TouchControlOverlayConfig> {
this.updateComponents();
};

if (this.loadingIcon.isSpinning) {
if (this.loadingIcon.isSpinning()) {
showLoadingIcon();
}

Expand Down

0 comments on commit 62c4147

Please sign in to comment.