You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Link marker flicker during typing — overlay pauses but ResizeObserver + CRDT sync still trigger redraws #180
While typing new content below existing linked passages, the link markers above flicker on/off and the Comment/See Also descriptor boxes redraw repeatedly.
Root cause: the overlayPausedRef mechanism pauses canvas redraws during typing (resumes 400ms after last keystroke), but:
ResizeObserver fires when content height changes (every new line)
CRDT sync triggers marker recomputation on every text delta
The 400ms resume timeout is too aggressive — still typing when it resumes
Fix directions:
Debounce the ResizeObserver during active typing
Defer marker recomputation until typing pause
Increase the resume timeout or make it activity-aware
Batch redraws: only redraw once per animation frame, not per event
Activity