feat: double tap to seek
Some checks are pending
Check / check (push) Waiting to run

This commit is contained in:
ThaUnknown 2025-07-22 12:41:53 +02:00
parent 490937a271
commit 13eab72944
No known key found for this signature in database
2 changed files with 7 additions and 3 deletions

View file

@ -1,6 +1,6 @@
{
"name": "ui",
"version": "6.4.80",
"version": "6.4.81",
"license": "BUSL-1.1",
"private": true,
"packageManager": "pnpm@9.15.5",

View file

@ -467,8 +467,8 @@
native.setActionHandler('play', playPause)
native.setActionHandler('pause', playPause)
native.setActionHandler('seekto', ({ seekTime }) => seekTo(seekTime ?? 0))
native.setActionHandler('seekbackward', () => seek(-2))
native.setActionHandler('seekforward', () => seek(2))
native.setActionHandler('seekbackward', () => seek(-Number($settings.playerSeek)))
native.setActionHandler('seekforward', () => seek(Number($settings.playerSeek)))
native.setActionHandler('previoustrack', () => prev?.())
native.setActionHandler('nexttrack', () => next?.())
// about://flags/#auto-picture-in-picture-for-video-playback
@ -873,6 +873,10 @@
<SkipForward fill='currentColor' strokeWidth='1' />
</Button>
</div>
<div class='size-full mobile:flex hidden justify-between absolute'>
<div class='h-full w-1/4 pointer-events-auto' on:dblclick|stopPropagation={() => seek(-Number($settings.playerSeek))} />
<div class='h-full w-1/4 pointer-events-auto' on:dblclick|stopPropagation={() => seek(Number($settings.playerSeek))} />
</div>
{/if}
{#if buffering}
<div in:fade={{ duration: 200, delay: 500 }} out:fade={{ duration: 200 }}>