Cancel gestures when their visible ancestor coordinate context changes
This commit is contained in:
@@ -602,3 +602,18 @@ attached view with the same ID. Explicit canvas navigation and detach publish th
|
||||
new view set together with cancellation. Session disposal fences admission before
|
||||
notifying, clears all views/previews, and is idempotent. These transient actions
|
||||
create no document/history/ledger entries and change no recovery format.
|
||||
|
||||
Gesture admission also checks the target owner's visible ancestry relative to the
|
||||
owning view's canvas. A collapsed or opaque ancestor is `target_hidden`; an owner
|
||||
outside that view's subtree is `target_outside_view`. Node and path gestures use
|
||||
the same rule. The temporary owner-to-chain Map shares work for multi-selection;
|
||||
it lives only during admission or a document publication, with no project scan.
|
||||
|
||||
An active gesture cancels with `coordinate_context_changed` when an entry in that
|
||||
relative chain changes geometry, normalized content/unit scale, identity, or
|
||||
parent relation, or becomes hidden. Entry titles and unrelated style fields do
|
||||
not affect the chain. Ancestors above an independently opened child view are
|
||||
excluded. Target component/version changes cancel with `target_changed`; removal
|
||||
of the view canvas publishes fallback navigation and `canvas_changed` together.
|
||||
Late updates/commit cannot use the canceled preview. Failed admission does not
|
||||
replace the accepted baseline, and no chain, preview or gesture enters recovery.
|
||||
|
||||
Reference in New Issue
Block a user