瀏覽代碼

Update seek time display

Whenever seeking stops, immediately update current time display.
pull/1/head
TheoryOfNekomata 1 年之前
父節點
當前提交
68cfb8111a
共有 1 個檔案被更改,包括 1 行新增0 行删除
  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 查看文件

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

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



Loading…
取消
儲存