feat: Update point click handling to prevent event propagation; enhance data structure in undo/redo handlers for improved state management
This commit is contained in:
@@ -631,7 +631,8 @@ function Point({ point }: { readonly point: Point }) {
|
|||||||
uuid={point.pointUuid}
|
uuid={point.pointUuid}
|
||||||
name={`${point.pointType}-Point`}
|
name={`${point.pointType}-Point`}
|
||||||
position={[...point.position]}
|
position={[...point.position]}
|
||||||
onClick={() => {
|
onClick={(e) => {
|
||||||
|
e.stopPropagation();
|
||||||
handlePointClick(point);
|
handlePointClick(point);
|
||||||
}}
|
}}
|
||||||
onPointerOver={(e) => {
|
onPointerOver={(e) => {
|
||||||
|
|||||||
@@ -338,7 +338,7 @@ function useRedoHandler() {
|
|||||||
// SOCKET
|
// SOCKET
|
||||||
|
|
||||||
const data = {
|
const data = {
|
||||||
aisleData: updatedData,
|
...updatedData,
|
||||||
projectId,
|
projectId,
|
||||||
versionId: selectedVersion?.versionId || '',
|
versionId: selectedVersion?.versionId || '',
|
||||||
userId,
|
userId,
|
||||||
|
|||||||
@@ -339,7 +339,7 @@ function useUndoHandler() {
|
|||||||
// SOCKET
|
// SOCKET
|
||||||
|
|
||||||
const data = {
|
const data = {
|
||||||
aisleData: updatedData,
|
...updatedData,
|
||||||
projectId,
|
projectId,
|
||||||
versionId: selectedVersion?.versionId || '',
|
versionId: selectedVersion?.versionId || '',
|
||||||
userId,
|
userId,
|
||||||
|
|||||||
Reference in New Issue
Block a user