Refactor interaction handling: change click events to double-click for DecalInstance, FloorInstance, and Wall components. Prevent event propagation to ensure proper selection behavior.

This commit is contained in:
2025-06-27 15:58:34 +05:30
parent edf76fa1c9
commit 12f1dd1771
3 changed files with 5 additions and 2 deletions

View File

@@ -126,6 +126,7 @@ function Wall({ wall }: { readonly wall: Wall }) {
onDoubleClick={(e) => {
if (visible && !togglView && activeModule === 'builder') {
if (e.object.userData.wallUuid) {
e.stopPropagation();
setSelectedWall(e.object);
setSelectedDecal(null);