mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-21 10:42:22 +00:00
Let the camera picker pick the opening CCTV camera
The picker preselected the active camera, and a native select fires no
change for the option it already shows. So while CCTV was still following
the view, choosing the camera the picker showed did nothing, and the next
pan switched to another camera.
The layer now reports whether the active camera is the opening one
(activeCameraProvisional). While it is, the picker shows that camera from
a hidden, disabled first option, so choosing it from the list is a change
and ends automatic selection; closing the list keeps it. A same-camera
pick that ends the opening pick notifies listeners so the picker drops the
hidden option, and reopenNearestCamera passes { opening: true } so its own
notification already carries the opening state.
docs/CURRENT-STATE.md now says when automatic selection ends. Tests cover
the hidden option, confirming and dismissing the picker before a pan, the
notification, and focusNearestToPoint, which is now on main.
This commit is contained in:
1 parent
fe37cacba0
commit
a6eecee157
12 files changed
+315
-30
No files matched your search
@@ -1,4 +1,5 @@
|
||||
- Keep the CCTV camera picked with NEAREST, from the camera list or by a scene
|
||||
when it is the camera the view just moved to. The pick did not stick:
|
||||
NEAREST's own flight, or the next pan, switched to another camera, so the
|
||||
panel showed a camera nobody had picked (gekh, #1702).
|
||||
panel showed a camera nobody had picked. Choosing the camera the list already
|
||||
shows now counts as a pick too (gekh, #1702).
|
||||
Reference in new issue
Block a user