Fix deselection for path selection
This commit is contained in:
parent
986f1efc9b
commit
7860871e7e
@ -160,6 +160,9 @@ function Selection({
|
||||
onMouseUp: handlePointerUp,
|
||||
onTouchStart: handlePointerDown,
|
||||
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 y = selection.y * mapHeight;
|
||||
|
@ -228,6 +228,7 @@ function SelectTool({
|
||||
return;
|
||||
}
|
||||
onSelectionChange(null);
|
||||
onSelectionMenuOpen(false);
|
||||
}
|
||||
|
||||
interactionEmitter?.on("dragStart", handleBrushDown);
|
||||
|
Loading…
Reference in New Issue
Block a user