Skip to content

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

Merged
BryonLewis merged 4 commits into
mainfrom
dev/right-click-other-camera-finalizes
Sep 21, 2026
Merged

BryonLewis merged 4 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

mattdawkins and others added 3 commits September 17, 2026 16:59
…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.
@BryonLewis
BryonLewis self-requested a review September 21, 2026 19:19
BryonLewis
BryonLewis previously approved these changes Sep 21, 2026
Keep both cursor-reset and re-hover edit-handle specs after the conflict.

Co-authored-by: Cursor <cursoragent@cursor.com>
@BryonLewis
BryonLewis merged commit fa39aed into main Sep 21, 2026
3 checks passed
@BryonLewis
BryonLewis deleted the dev/right-click-other-camera-finalizes branch September 21, 2026 19:27
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.

2 participants