daily: 2021-09-27
This commit is contained in:
@@ -6,10 +6,12 @@ function Canvas({ children, ...props }) {
|
||||
return (
|
||||
<svg
|
||||
xmlns=" http://www.w3.org/2000/svg"
|
||||
{...props}
|
||||
className={Styles.svg}
|
||||
width={store.canvasWidth}
|
||||
height={store.canvasHeight}
|
||||
// TODO: do this
|
||||
onContextMenu={(ev) => ev.preventDefault()}
|
||||
{...props}
|
||||
>
|
||||
{children}
|
||||
</svg>
|
||||
|
||||
Reference in New Issue
Block a user