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;