GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(app): scroll settings natively from the sidebar and gutters by Hona · Pull Request #60743 · anomalyco/opencode

Conversation

@Hona

@Hona Hona commented Oct 30, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Summary

  • Regression from: fix(app): scroll settings page from the gutter #57598 added the onWheel forwarding that this PR removes. fix(app): keep settings nav scroll inside the list #60504 then made the forwarding step aside for an overflowing page list, but did not change the stepped scroll.
  • Problem: Scrolling over the settings page list or the gutters jumped in steps. A wheel handler on .settings-screen caught the event and called panel.scrollBy() once per event. This skipped the browser's smooth wheel animation and trackpad momentum.
  • Fix: In the wide layout, the whole settings view (.settings) is now the scroll container, and the sidebar is position: sticky. A wheel anywhere on the screen scrolls the page natively, so it is smooth and has momentum. The JS forwarding is removed.
  • Page list that overflows: It still keeps the wheel at its edges. overscroll-behavior: contain now applies only while the list overflows. Chromium applies contain to a list that fits too, and that stopped a wheel over the tabs from reaching the page.
  • Narrow layout (< 800px): No change. Each page still scrolls inside its own panel.
flowchart LR
  subgraph Before
    W1[wheel over tabs] --> H[onWheel on .settings-screen] --> S["panel.scrollBy(deltaY)<br/>instant jump per event"]
  end
  subgraph After
    W2[wheel over tabs] --> N["native scroll of .settings<br/>(sidebar is sticky)"]
  end
Loading

Implementation

  • settings.css

    • .settings fills the screen and centers its 1048px layout with padding-inline: max(0px, calc((100% - 1048px) / 2)). The gutters are now inside the scroll container.

    • @container settings-screen (min-width: 800px): .settings scrolls, the sidebar is sticky at height: 100%, and the panel grows with its content. The sticky page header now sticks to .settings.

    • The nav list's overscroll-behavior: contain comes from the same scroll(self) timeline as the edge fades. A list without overflow has no timeline, so it keeps auto:

      @keyframes settings-nav-contain {
        from,
        to {
          overscroll-behavior: contain;
        }
      }
  • navigation.tsx: In the wide layout, all pages share one scroller, so a page change resets it to the top.

  • scroller.ts: settingsScroller(panel) returns the element that scrolls a page: the panel in the narrow layout, .settings in the wide one. Search reveal and the Models provider jump use it.

  • shell.tsx: Removes the onWheel forwarding and insideScroller.

Visual

<svg xmlns="http://www.w3.org/2000/svg" width="240" height="72" viewBox="0 0 240 72" fill="currentColor">
  <defs>
    <clipPath id="c"><rect x="96" y="4" width="136" height="64" rx="4"/></clipPath>
  </defs>
  <rect x="8" y="4" width="76" height="64" rx="4" opacity=".06"/>
  <rect x="16" y="12" width="44" height="6" rx="3" opacity=".45"/>
  <rect x="16" y="24" width="56" height="8" rx="3" opacity=".16"/>
  <rect x="18" y="25" width="36" height="6" rx="3" opacity=".9"/>
  <rect x="16" y="38" width="40" height="6" rx="3" opacity=".45"/>
  <rect x="16" y="50" width="50" height="6" rx="3" opacity=".45"/>
  <circle cx="44" cy="40" r="5" opacity=".35">
    <animate attributeName="cy" values="40;44;40" dur="1.2s" repeatCount="indefinite"/>
  </circle>
  <g clip-path="url(#c)">
    <g>
      <animateTransform attributeName="transform" type="translate" values="0 0;0 -48;0 0" keyTimes="0;.5;1" dur="4s" repeatCount="indefinite" calcMode="spline" keySplines=".4 0 .2 1;.4 0 .2 1"/>
      <rect x="104" y="10" width="64" height="7" rx="3.5" opacity=".7"/>
      <rect x="104" y="24" width="120" height="14" rx="4" opacity=".18"/>
      <rect x="104" y="44" width="120" height="14" rx="4" opacity=".18"/>
      <rect x="104" y="64" width="120" height="14" rx="4" opacity=".18"/>
      <rect x="104" y="84" width="120" height="14" rx="4" opacity=".18"/>
      <rect x="104" y="104" width="120" height="14" rx="4" opacity=".18"/>
    </g>
  </g>
</svg>

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Hona
fix(app): scroll settings natively from the sidebar and gutters
25fe35d
@Hona
Hona requested a review from Brendonovich as a code owner October 30, 2026 23:16
Copilot AI balanced review requested due to automatic review settings October 30, 2026 23:16
Copilot AI reviewed Oct 30, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
opencodejr[bot]
opencodejr Bot reviewed Oct 30, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The change looks sound to me; I found nothing that should block it.

How I checked: I ran e2e/regression/settings.spec.ts in headless Chromium. Both settings layout tests pass, and wheeling over the gutter and then the page list scrolls the settings view natively. The only failure (settings has its own route…) fails the same way on the base. tsc -b in packages/app is clean. Headless Chromium can't show smooth wheel animation or trackpad momentum, so I couldn't confirm that part by eye.

Public API: unchanged. This only touches app CSS and internal components.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Hona
fix(app): satisfy lint in settings search reveal
8b92156
opencodejr[bot]
opencodejr Bot reviewed Oct 30, 2026
View reviewed changes

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The new commit doesn't change any behaviour: search-reveal.ts replaces the casts on the reveal state with a named type, and navigation.tsx has a longer comment. tsc -b in packages/app still passes. My last review left no open points, and I have nothing new. Public API: unchanged.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Hona
Hona merged commit 4943d5b into dev Oct 30, 2026
20 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@Hona
Hona deleted the settings-nav-scroll branch October 30, 2026 23:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@opencodejr opencodejr[bot] opencodejr[bot] left review comments
@Brendonovich Brendonovich Awaiting requested review from Brendonovich

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@Hona
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.