Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion pkgs/id/web/src/cursors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Loading