Skip to content

Finalize the detection and select the camera on a right-click in another camera - #1931

Open
mattdawkins wants to merge 2 commits into
mainfrom
dev/right-click-other-camera-finalizes
Open

mattdawkins wants to merge 2 commits into
mainfrom
dev/right-click-other-camera-finalizes

Conversation

@mattdawkins

@mattdawkins mattdawkins commented Sep 17, 2026

Copy link
Copy Markdown
Member
  • Right-clicking off a detection in another camera while editing selected that camera but left the detection in edit mode.

  • When the track also has geometry on the clicked camera (e.g. a stereo-warped detection), that camera's edit layer ends editing on the GeoJS click, which fires before the wrapper's mouseup. changeCamera then saw editingTrack === false and selectCamera(camera, true) re-entered edit mode.

  • Record the editing state on right mousedown; if editing was active, finalize and select the clicked camera without re-entering edit mode. The still-editing case now also selects the camera instead of only deselecting.

  • Follow-up: the press now always deselects, in every edit mode. In line mode after a stereo warp the clicked camera's edit layer had already ended editing, so the detection stayed selected and needed a second right-click.

🤖 Generated with Claude Code

…lready ended editing

With the detection on both cameras (line mode after a stereo warp), the
clicked camera's edit layer ends editing first, which left it selected and
needed a second right-click.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant