Skip to content

Commit

Permalink
minor code style improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
stonko1994 committed Dec 10, 2024
1 parent 913e455 commit ef2ce06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ts/components/seekbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export class SeekBar extends Component<SeekBarConfig> {
// Update playback position only in paused state or in the initial startup state where player is neither
// paused nor playing. Playback updates are handled in the Timeout below.
const isInInitialStartupState = this.config.smoothPlaybackPositionUpdateIntervalMs === SeekBar.SMOOTH_PLAYBACK_POSITION_UPDATE_DISABLED
|| forceUpdate || player.isPaused();
|| forceUpdate || player.isPaused();
const isNeitherPausedNorPlaying = player.isPaused() === player.isPlaying();

if ((isInInitialStartupState || isNeitherPausedNorPlaying) && !this.isSeeking()) {
Expand Down Expand Up @@ -1103,7 +1103,7 @@ export class SeekBar extends Component<SeekBarConfig> {
this.refreshPlaybackPosition();
}

/**
/**
* Checks if TouchEvent is supported.
* @returns {boolean} true if TouchEvent not undefined, else false
*/
Expand Down

0 comments on commit ef2ce06

Please sign in to comment.