From e82645563610c33e93794d1695ab08886f2c1b82 Mon Sep 17 00:00:00 2001 From: Andreas Kogler Date: Wed, 18 Sep 2024 14:50:26 +0200 Subject: [PATCH] Also hide seekbar on `blur` --- src/ts/components/seekbar.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ts/components/seekbar.ts b/src/ts/components/seekbar.ts index c06cc0137..2e41000f7 100644 --- a/src/ts/components/seekbar.ts +++ b/src/ts/components/seekbar.ts @@ -780,8 +780,8 @@ export class SeekBar extends Component { } }); - // 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);