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
@@ -156,6 +156,11 @@ export function MobileFileDetail({
setSelectedCommentId(null)
}
const handleSeek = () => {
setAnnotations([])
setSelectedCommentId(null)
}
const handleCommentSelect = (comment: CommentInfo) => {
setSelectedCommentId(comment.id || null)
const newAnnotations = comment.annotations as Annotation[]
@@ -238,6 +243,7 @@ export function MobileFileDetail({
mediaControllerRef={mediaControllerRef}
onPlay={handlePlay}
onTimeUpdate={setCurrentTime}
onSeek={handleSeek}
annotations={annotations}
startTime={startTime}
shareId={shareId}