Skip to content

fix(react): suppress rubber-band overscroll on pointer-fine devices - #1122

Merged
ovflowd merged 1 commit into
mainfrom
fix/overscroll-behavior
Sep 30, 2026
Merged

ovflowd merged 1 commit into
mainfrom
fix/overscroll-behavior

Conversation

@ovflowd

@ovflowd ovflowd commented Sep 30, 2026

Copy link
Copy Markdown
Member

Description

Adds overscroll-behavior: none to html, gated behind @media (pointer: fine), to suppress the macOS rubber-band bounce effect on trackpad/mouse users. Touch devices are unaffected and retain their native scroll feel.

Validation

Open the docs site on macOS with a trackpad — scrolling past the top or bottom of the page no longer bounces. On a touch device the bounce is still there.

Related Issues

N/A

Check List

  • I have read the Contributing Guidelines and made commit messages that follow the guideline.
  • I have run node --run test and all tests passed.
  • I have check code formatting with node --run format:check & node --run lint.
  • I've covered new added functionality with unit tests if necessary.

@ovflowd
ovflowd requested a review from a team as a code owner September 30, 2026 14:43
@vercel

vercel Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
api-docs-tooling Ready Ready Preview Sep 30, 2026 2:47pm UTC

Request Review

@codecov

codecov Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.60%. Comparing base (932ca57) to head (ab3505f).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1122   +/-   ##
=======================================
  Coverage   92.60%   92.60%           
=======================================
  Files         244      244           
  Lines       22998    22998           
  Branches     2250     2250           
=======================================
  Hits        21297    21297           
  Misses       1692     1692           
  Partials        9        9           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

api-links Generator

Performance estimate (single CI run)

  • Generation time: 54.4% slower (900.00 ms → 1.39 s)
  • Peak memory: 16.9% lower (438.55 MB → 364.64 MB)

json Generator

Performance estimate (single CI run)

  • Generation time: 50.0% slower (6.94 s → 10.41 s)
  • Peak memory: 8.6% lower (1.70 GB → 1.56 GB)

legacy-html Generator

Performance estimate (single CI run)

  • Generation time: 36.6% slower (31.31 s → 42.76 s)
  • Peak memory: 4.0% lower (2.55 GB → 2.45 GB)

legacy-json Generator

Performance estimate (single CI run)

  • Generation time: 16.9% faster (8.72 s → 7.25 s)
  • Peak memory: 6.6% lower (1.62 GB → 1.51 GB)

llms-txt Generator

Performance estimate (single CI run)

  • Generation time: 3.3% faster (7.82 s → 7.56 s)
  • Peak memory: 2.3% higher (1.58 GB → 1.62 GB)

orama-db Generator

Output size: 1 file changed · net -2.00 B

File size details
File Main PR Change
orama-db.json 9.55 MB 9.55 MB -2.00 B (-0.0%)

Performance estimate (single CI run)

  • Generation time: 22.5% faster (8.52 s → 6.60 s)
  • Peak memory: 7.1% lower (1.77 GB → 1.64 GB)

web Generator

Output size: 2 files changed · net +53.00 B

File size details
File Main PR Change
assets/style-CgRaeUUe.css — 137.19 KB +137.19 KB
assets/style-CGabmPaa.css 137.13 KB — -137.13 KB (-100.0%)

Performance estimate (single CI run)

  • Generation time: 8.1% faster (62.70 s → 57.65 s)
  • Peak memory: 19.7% higher (3.06 GB → 3.66 GB)

Gate `overscroll-behavior: none` on `html` behind `@media (pointer: fine)`
so trackpad/mouse users don't get the macOS bounce effect, while touch
devices retain their native scroll feel.

Assisted-by: Claude Sonnet 4.6 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Sep 30, 2026 •

Copy link
Copy Markdown

🚀 Deploying Preview to Cloudflare 🚀

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) See this deployment's details
  • Build: Failed ❌

View logs ↗
ab3505f 2026-09-30T15:34:36.541Z View logs ↗
  • Build: Failed ❌

View logs ↗
e2f3ce1 2026-09-30T14:57:32.031Z View logs ↗

@ovflowd

ovflowd commented Sep 30, 2026

Copy link
Copy Markdown
Member Author

Merging as a hot-fix

@ovflowd
ovflowd merged commit afed64d into main Sep 30, 2026
26 of 27 checks passed
@ovflowd
ovflowd deleted the fix/overscroll-behavior branch September 30, 2026 22:13

This branch was successfully deployed

1 active deployment
Preview – api-docs-tooling — ab3505ff Deployed Sep 30, 2026 by vercel[bot]
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.

2 participants