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}
|
||||
name={`${point.pointType}-Point`}
|
||||
position={[...point.position]}
|
||||
onClick={() => {
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
handlePointClick(point);
|
||||
}}
|
||||
onPointerOver={(e) => {
|
||||
|
||||
@@ -338,7 +338,7 @@ function useRedoHandler() {
|
||||
// SOCKET
|
||||
|
||||
const data = {
|
||||
aisleData: updatedData,
|
||||
...updatedData,
|
||||
projectId,
|
||||
versionId: selectedVersion?.versionId || '',
|
||||
userId,
|
||||
|
||||
@@ -339,7 +339,7 @@ function useUndoHandler() {
|
||||
// SOCKET
|
||||
|
||||
const data = {
|
||||
aisleData: updatedData,
|
||||
...updatedData,
|
||||
projectId,
|
||||
versionId: selectedVersion?.versionId || '',
|
||||
userId,
|
||||
|
||||
Reference in New Issue
Block a user