mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-03 22:44:28 +00:00
fix(webui): clear markup annotations when rotating 3d model (#474)
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user