fix(css): replace MQ4 negation with MQ3-compatible scroll behavior guards#109
Merged
fix(css): replace MQ4 negation with MQ3-compatible scroll behavior guards#109
Conversation
Merged
…pproach for scroll behavior Co-authored-by: devakesu <61821107+devakesu@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix mobile scroll lag and update version to v1.1.3
fix(css): replace MQ4 negation with MQ3-compatible scroll behavior guards
Mar 6, 2026
Contributor
There was a problem hiding this comment.
Pull request overview
Updates global scroll behavior media queries to avoid Media Queries Level 4 negation syntax that can be ignored by some browsers, ensuring desktop smooth scrolling rules reliably apply while touch/hybrid devices keep native scrolling behavior.
Changes:
- Replace the single
@media (pointer: fine) and (not (any-pointer: coarse))block with two explicit queries. - Apply
scroll-behavior: smooth+overscroll-behavior-y: containfor fine-pointer devices and reset both toautofor any coarse-pointer devices (to preserve iOS momentum/rubber-band scrolling on touch/hybrids).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
devakesu
added a commit
that referenced
this pull request
Mar 6, 2026
* fix(mobile): scope desktop scroll CSS to pointer:fine + guard reactive-glow scroll listener — v1.1.3 (#106) * Initial plan * fix: mobile scroll lag + bump to v1.1.3 - scope scroll-behavior/overscroll-behavior-y to @media (pointer: fine) - add touch device guard to reactive-glow.js scroll listener - bump version to 1.1.3 across package.json, README.md, SECURITY.md - update react-icons 5.5.0 → 5.6.0 - update GitHub Actions: harden-runner v2.15.1, setup-node v6.3.0, trivy-action v0.34.2, setup-buildx-action v4.0.0, login-action v4.0.0, build-push-action v7.0.0, sbom-action v0.23.0, upload-artifact v7.0.0, attest-build-provenance v4.1.0 Co-authored-by: devakesu <61821107+devakesu@users.noreply.github.com> * Update .github/workflows/deploy.yml Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Devanarayanan <fusion@devakesu.com> * Update app/globals.css Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Signed-off-by: Devanarayanan <fusion@devakesu.com> --------- Signed-off-by: Devanarayanan <fusion@devakesu.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: devakesu <61821107+devakesu@users.noreply.github.com> Co-authored-by: Devanarayanan <fusion@devakesu.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * fix: tighten hybrid-device touch guards and pin Node version in CI (#108) * Initial plan * fix: apply review feedback — any-pointer guard, hybrid CSS fix, pin Node 20.19.0 Co-authored-by: devakesu <61821107+devakesu@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: devakesu <61821107+devakesu@users.noreply.github.com> * fix(css): replace MQ4 negation with MQ3-compatible scroll behavior guards (#109) * Initial plan * fix(css): replace MQ Level-4 negation with MQ3-compatible two-block approach for scroll behavior Co-authored-by: devakesu <61821107+devakesu@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: devakesu <61821107+devakesu@users.noreply.github.com> --------- Signed-off-by: Devanarayanan <fusion@devakesu.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
@media (pointer: fine) and (not (any-pointer: coarse))uses Level 4 negation syntax that browsers may silently ignore, causing smooth scroll rules to never apply on desktop.Changes
app/globals.css— replace single Level 4 query with two MQ3-compatible blocks:@media (pointer: fine)appliesscroll-behavior: smooth+overscroll-behavior-y: containfor mouse/trackpad devices@media (any-pointer: coarse)explicitly resets both properties toauto, preserving iOS momentum/rubber-band scrolling on touch and hybrid devicesCascade order is intentional: on hybrids (e.g. iPad + trackpad), the coarse reset wins and preserves native scroll feel.
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.