-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support scroll-padding #34
Comments
Yep, sounds very useful – didn't know this property existed! |
Would love to see this happen |
Any update on this one? I'm assuming this would include scroll-margin too? |
Chiming in, this would be extremely helpful...running into lots of issues with fixed mobile navigation cutting off the top of sections because the lib does not respect scroll-margin or scroll-padding in CSS |
Hey, just to give you a quick heads-up: |
That would be incredible, thank you!
…On Tue, Feb 15, 2022 at 3:47 PM Jonas ***@***.***> wrote:
Hey, just to give you a quick heads-up:
I'll look into it this week, but can't promise anything as of now, as it
might be actually quite complicated to make this happen given the current
implementation (which just calls .scrollIntoView() and is not concerned
with individual scrolls). I have some ideas though, so we'll see!
—
Reply to this email directly, view it on GitHub
<#34 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAPZ32FIBTLSTI6JHGRD343U3K3U5ANCNFSM4K5R5XGA>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you commented.Message ID:
***@***.***>
|
To clarify, I'm only seeing this particular issue with the lib on IOS
devices.
On Tue, Feb 15, 2022 at 4:03 PM David Lindsey ***@***.***>
wrote:
… That would be incredible, thank you!
On Tue, Feb 15, 2022 at 3:47 PM Jonas ***@***.***> wrote:
> Hey, just to give you a quick heads-up:
> I'll look into it this week, but can't promise anything as of now, as it
> might be actually quite complicated to make this happen given the current
> implementation (which just calls .scrollIntoView() and is not concerned
> with individual scrolls). I have some ideas though, so we'll see!
>
> —
> Reply to this email directly, view it on GitHub
> <#34 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAPZ32FIBTLSTI6JHGRD343U3K3U5ANCNFSM4K5R5XGA>
> .
> Triage notifications on the go with GitHub Mobile for iOS
> <https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
> or Android
> <https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
>
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
|
Nothing new for So you can apply a scroll margin to the scrollable/targetable elements (instead of a padding for the scroll container) and avoid the mobile navigation issue: /* Doesn't work (yet) 👎 */
.scroll-container {
scroll-padding-top: 100px; /* adjust for fixed navigation */
}
/* Works 👍 */
[id] {
scroll-margin-top: 100px; /* adjust for fixed navigation */
} |
How can I pull that in? I don't see a newer version on npmjs: https://www.npmjs.com/package/smoothscroll-anchor-polyfill |
@DavidLindsey0118 No new version of smoothscroll-anchor-polyfill needed, support for |
Thank you, I figured it out. For posterity, using NPM, I also had to make sure I was using the latest version of seamless-scroll-polyfill (2.1.8) and also had to implement it via the directions in the README.MD (also here: https://www.npmjs.com/package/seamless-scroll-polyfill under "Use polyfill to patch all methods") Thanks! |
Any chance you could add support for scroll-padding?
The text was updated successfully, but these errors were encountered: