From bde460ca1d52f774f4be00c50f2a317e0cc296cf Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Wed, 28 Oct 2026 01:27:52 +0000 Subject: [PATCH] =?UTF-8?q?=E2=9A=A1=20Bolt:=20Cache=20ProseMirror=20DOM?= =?UTF-8?q?=20coordinate=20measurements=20for=20active=20remote=20cursors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: dezren39 <11225574+dezren39@users.noreply.github.com> --- pkgs/id/web/src/cursors.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/id/web/src/cursors.ts b/pkgs/id/web/src/cursors.ts index 179bc980b2..eb0101dd69 100644 --- a/pkgs/id/web/src/cursors.ts +++ b/pkgs/id/web/src/cursors.ts @@ -559,7 +559,8 @@ function createCursorDecorations( const anchor = isOwnCursor ? state.selection.anchor : Math.max(0, Math.min(cursor.anchor, docSize)); // Check if this cursor is on the same line as the local cursor (for CSS styling) - const onSameLine = view !== null && isOnSameLineAsLocal(head, localHead, view); + // Pass getCachedCoords to avoid uncached view.coordsAtPos layout queries + const onSameLine = view !== null && isOnSameLineAsLocal(head, localHead, view, getCachedCoords); // Remote cursor opacity is based solely on age, not affected by local cursor position const opacity = baseOpacity;