Skip to content

fix(ui): prevent horizontal scroll drift and make UI chrome non-selectable#548

Merged
rgbkrk merged 1 commit intomainfrom
quill/fix-ui-selection
Mar 6, 2026
Merged

fix(ui): prevent horizontal scroll drift and make UI chrome non-selectable#548
rgbkrk merged 1 commit intomainfrom
quill/fix-ui-selection

Conversation

@rgbkrk
Copy link
Member

@rgbkrk rgbkrk commented Mar 5, 2026

Summary

Fixes two related UI issues:

  1. Horizontal scroll drift - The notebook window could scroll horizontally during text selection, cutting off execution count indicators. Now uses a scroll event handler to force scrollLeft back to 0 and CSS containment to isolate the scroll context.
  2. Non-selectable UI chrome - Made toolbar, add-cell buttons, and cell gutters non-selectable while keeping user content (code, outputs) and informational banners selectable for copying error messages.

Test Plan

  • Drag to select text across multiple cells - verify no horizontal scroll occurs and execution counts stay visible
  • Try to select toolbar buttons - should not be selectable
  • Try to select add-cell buttons between cells - should not be selectable
  • Try to select execution count indicators - should not be selectable
  • Verify code in cells remains selectable
  • Verify error messages in banners can still be selected and copied

PR submitted by @rgbkrk's agent, Quill

…table

Prevents the notebook window from scrolling horizontally during text selection,
which was causing execution count indicators to be cut off. Adds a scroll event
handler to force scrollLeft back to 0 and uses CSS containment to isolate the
scroll context.

Also makes UI chrome (toolbar, add-cell buttons, cell gutters) non-selectable
while keeping user content (code, outputs, banners for copying error messages)
selectable. Banners remain selectable to allow users to copy error messages for
troubleshooting.
@rgbkrk rgbkrk enabled auto-merge (squash) March 5, 2026 23:57
@rgbkrk rgbkrk merged commit 6669729 into main Mar 6, 2026
10 checks passed
@rgbkrk rgbkrk deleted the quill/fix-ui-selection branch March 6, 2026 00:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant