v2-ui #94

Merged
Vishnu merged 38 commits from v2-ui into main 2025-05-26 05:09:47 +00:00
Showing only changes of commit ae7f33c485 - Show all commits

View File

@@ -10,7 +10,6 @@ function CommentInstance({ comment }: { comment: CommentSchema }) {
const [selectedComment, setSelectedComment] = useState<CommentSchema | null>(null);
const [transformMode, setTransformMode] = useState<"translate" | "rotate" | null>(null);
if (comment.state === 'inactive' || isPlaying) return null;
useEffect(() => {
const handleKeyDown = (e: KeyboardEvent) => {
@@ -28,6 +27,8 @@ function CommentInstance({ comment }: { comment: CommentSchema }) {
return () => window.removeEventListener("keydown", handleKeyDown);
}, [selectedComment]);
if (comment.state === 'inactive' || isPlaying) return null;
return (
<>