Skip to content

Commit

Permalink
Also hide seekbar on blur
Browse files Browse the repository at this point in the history
  • Loading branch information
Andr3wid committed Sep 18, 2024
1 parent 0e632cc commit e826455
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 @@ -780,8 +780,8 @@ export class SeekBar extends Component<SeekBarConfig> {
}
});

// Hide seek target indicator when mouse or finger leaves seekbar
seekBar.on('touchend mouseleave', (e: MouseEvent | TouchEvent) => {
// Hide seek target indicator when mouse or finger leaves seekbar or seekbar loses focus
seekBar.on('touchend mouseleave blur', (e: MouseEvent | TouchEvent) => {
e.preventDefault();

this.setSeekPosition(0);
Expand Down

0 comments on commit e826455

Please sign in to comment.