fix: more hold to FF issues
Some checks are pending
Check / check (push) Waiting to run

This commit is contained in:
ThaUnknown 2025-07-20 02:49:33 +02:00
parent c5ca279227
commit 6b37f517c9
No known key found for this signature in database
2 changed files with 6 additions and 6 deletions

View file

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

View file

@ -702,6 +702,7 @@
const startFF = () => {
clearTimeout(timeout)
timeout = setTimeout(() => {
if (fastForwarding) return
paused = false
fastForwarding = true
oldPlaybackRate = playbackRate
@ -710,11 +711,10 @@
}
const endFF = () => {
clearTimeout(timeout)
if (fastForwarding) {
fastForwarding = false
playbackRate = oldPlaybackRate
paused = true
}
if (!fastForwarding) return
fastForwarding = false
playbackRate = oldPlaybackRate
paused = true
}
document.addEventListener(type + 'down' as 'keydown' | 'pointerdown', event => {
if (isMiniplayer) return