diff --git a/net/web/src/User/Conversation/AddTopic/VideoFile/VideoFile.jsx b/net/web/src/User/Conversation/AddTopic/VideoFile/VideoFile.jsx index 89bb74e1..93b9ddba 100644 --- a/net/web/src/User/Conversation/AddTopic/VideoFile/VideoFile.jsx +++ b/net/web/src/User/Conversation/AddTopic/VideoFile/VideoFile.jsx @@ -18,6 +18,9 @@ export function VideoFile({ url, onPosition }) { const onSeek = (offset) => { if (player.current) { let len = player.current.getDuration(); + if (len > 128) { + offset *= Math.floor(len / 128); + } seek.current += offset; if (seek.current < 0 || seek.current >= len) { seek.current = 0; diff --git a/net/web/src/VirtualList/VirtualList.jsx b/net/web/src/VirtualList/VirtualList.jsx index 21bfceea..1e8afd96 100644 --- a/net/web/src/VirtualList/VirtualList.jsx +++ b/net/web/src/VirtualList/VirtualList.jsx @@ -316,6 +316,7 @@ export function VirtualList({ id, items, itemRenderer }) { if (height) { growCanvasHeight(height * 3); viewHeight.current = height; + updateCanvas(); } return (