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:
2025-07-31 10:27:07 +05:30
parent d6f8a29b83
commit 3cfde617cc
3 changed files with 4 additions and 3 deletions

View File

@@ -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) => {

View File

@@ -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,

View File

@@ -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,