Browse Source

Update seek time display

Whenever seeking stops, immediately update current time display.
pull/1/head
TheoryOfNekomata 1 year ago
parent
commit
68cfb8111a
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      packages/web-kitchensink-reactnext/src/categories/blob/react/hooks/interactive/media.ts

+ 1
- 0
packages/web-kitchensink-reactnext/src/categories/blob/react/hooks/interactive/media.ts View File

@@ -77,6 +77,7 @@ export const useMediaControls = <T extends HTMLMediaElement>({


const { currentTarget: thisElement } = e; const { currentTarget: thisElement } = e;
setIsSeeking(false); setIsSeeking(false);
setCurrentTimeDisplay(thisElement.valueAsNumber);
doSetSeek(thisElement, mediaController); doSetSeek(thisElement, mediaController);
}, [ref, doSetSeek]); }, [ref, doSetSeek]);




Loading…
Cancel
Save