Fix deselection for path selection
This commit is contained in:
parent
986f1efc9b
commit
7860871e7e
@ -160,6 +160,9 @@ function Selection({
|
|||||||
onMouseUp: handlePointerUp,
|
onMouseUp: handlePointerUp,
|
||||||
onTouchStart: handlePointerDown,
|
onTouchStart: handlePointerDown,
|
||||||
onTouchEnd: handlePointerUp,
|
onTouchEnd: handlePointerUp,
|
||||||
|
// Increase stroke width when drawing a selection to
|
||||||
|
// prevent deselection click event from firing
|
||||||
|
hitStrokeWidth: hasItems ? undefined : 100,
|
||||||
};
|
};
|
||||||
const x = selection.x * mapWidth;
|
const x = selection.x * mapWidth;
|
||||||
const y = selection.y * mapHeight;
|
const y = selection.y * mapHeight;
|
||||||
|
@ -228,6 +228,7 @@ function SelectTool({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
onSelectionChange(null);
|
onSelectionChange(null);
|
||||||
|
onSelectionMenuOpen(false);
|
||||||
}
|
}
|
||||||
|
|
||||||
interactionEmitter?.on("dragStart", handleBrushDown);
|
interactionEmitter?.on("dragStart", handleBrushDown);
|
||||||
|
Loading…
Reference in New Issue
Block a user