fix: remove context menu on canvas

This commit is contained in:
trafficlunar 2024-12-31 20:35:09 +00:00
parent e07d0522a7
commit 6892f0b9ca

View file

@ -298,7 +298,12 @@ function Canvas() {
}, []); }, []);
return ( return (
<div ref={stageContainerRef} className="relative w-full h-full bg-zinc-200 dark:bg-black" style={{ cursor: cssCursor }}> <div
ref={stageContainerRef}
onContextMenu={() => null}
style={{ cursor: cssCursor }}
className="relative w-full h-full bg-zinc-200 dark:bg-black"
>
<Stage <Stage
width={stageSize.width} width={stageSize.width}
height={stageSize.height} height={stageSize.height}