Add click-through cycling tracking variables in viewport-host.ts

This commit is contained in:
2026-04-01 04:36:15 +02:00
parent a2af5b4ec8
commit 9060bce4ba

View File

@@ -156,6 +156,10 @@ export class ViewportHost {
private lastBoxCreatePreviewCenter: Vec3 | null = null;
private activeCameraDragPointerId: number | null = null;
private lastCameraDragClientPosition: { x: number; y: number } | null = null;
// Click-through cycling: track the last click position and the last picked object
// so repeated clicks at the same spot cycle through overlapping objects.
private lastClickPointer: { x: number; y: number } | null = null;
private lastClickSelectionKey: string | null = null;
constructor() {
this.camera.position.set(10, 9, 10);