feat(webui): polish sidebar and session transitions (#5393)
This commit is contained in:
1 parent
057c5e849b
commit
221e8a4e4a
17 files changed
+1152
-560
No files matched your search
@@ -147,10 +147,10 @@ function defaultScheduler(): ThreadMotionScheduler {
|
||||
}
|
||||
|
||||
/**
|
||||
* Owns the policy that turns discrete layout events into automatic tail
|
||||
* pinning or explicit camera navigation. Callers only invalidate geometry;
|
||||
* one display frame coalesces those notifications and reads the authoritative
|
||||
* layout before applying either policy.
|
||||
* Owns the policy that turns layout events into automatic tail pinning or
|
||||
* explicit camera navigation. Discrete notifications are coalesced into one
|
||||
* display frame. ResizeObserver deliveries reconcile immediately because they
|
||||
* already carry the browser's authoritative layout and run before paint.
|
||||
*/
|
||||
export class ThreadMotionCoordinator {
|
||||
private readonly camera: ThreadMotionCamera;
|
||||
@@ -240,6 +240,15 @@ export class ThreadMotionCoordinator {
|
||||
this.measurementFrameId = this.scheduler.request(this.flushGeometry);
|
||||
}
|
||||
|
||||
reconcileObservedGeometry(): void {
|
||||
if (this.measurementFrameId !== null) {
|
||||
this.scheduler.cancel(this.measurementFrameId);
|
||||
this.measurementFrameId = null;
|
||||
}
|
||||
this.geometryDirty = true;
|
||||
this.flushGeometry();
|
||||
}
|
||||
|
||||
handleComposerInput(): void {
|
||||
// Input and protocol completion can arrive in either order. Remember
|
||||
// editing that starts just before turn_end so the completion drawer
|
||||
|
||||
Reference in new issue
Block a user