fix(webui): clear markup annotations when rotating 3d model (#474)

This commit is contained in:
Yiling-J
2026-10-13 15:21:12 +08:00
committed by GitHub
parent f3da916905
commit 3263580e89
7 changed files with 128 additions and 1 deletions
@@ -609,6 +609,11 @@ function FileViewPage() {
setSelectedCommentId(null)
}
const handleSeek = () => {
setAnnotations([])
setSelectedCommentId(null)
}
if (isMobile && !isCompareMode) {
return (
<MobileFileDetail
@@ -702,6 +707,7 @@ function FileViewPage() {
mediaControllerRef={mediaControllerRef}
onPlay={handlePlay}
onTimeUpdate={setCurrentTime}
onSeek={handleSeek}
annotations={annotations}
startTime={startTime}
>