fix: replace interactive prop in block selector(s) with eventMode
This commit is contained in:
parent
f3441d8033
commit
17dc511053
2 changed files with 2 additions and 2 deletions
|
|
@ -59,7 +59,7 @@ function BlockSelector({ stageWidth, searchInput, selectedBlocks, setSelectedBlo
|
||||||
x={x}
|
x={x}
|
||||||
y={y}
|
y={y}
|
||||||
scale={2}
|
scale={2}
|
||||||
interactive={true}
|
eventMode={"static"}
|
||||||
pointerover={() => setHoverPosition({ x, y })}
|
pointerover={() => setHoverPosition({ x, y })}
|
||||||
click={() => onClick(block)}
|
click={() => onClick(block)}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,7 @@ function BlockSelector({ stageWidth, searchInput }: Props) {
|
||||||
x={x}
|
x={x}
|
||||||
y={y}
|
y={y}
|
||||||
scale={2}
|
scale={2}
|
||||||
interactive={true}
|
eventMode={"static"}
|
||||||
pointerover={() => setHoverPosition({ x, y })}
|
pointerover={() => setHoverPosition({ x, y })}
|
||||||
click={() => {
|
click={() => {
|
||||||
setSelectedBlock(block);
|
setSelectedBlock(block);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue