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