Search the Community
Showing results for tags 'shopify'.
-
When the scroll stops, the section vibrates and also glitches. And on mobile the scroll is very short, so what’s the solution for that? Should I share a video so you can check it and provide a solution? Adobe Express - IMG_2007 (1).mp4
- 6 replies
-
- smooth scroll
- react js
-
(and 2 more)
Tagged with:
-
Hi All. I am building a site based on shopify hydrogen (react, remix). SmoothScroll works correctly everywhere except where I need to reactively change the url without changing the current location on the page. I.e. for the user everything happens unnoticeably, it can be a simple add to cart via fetch or it can be a link click on NavLink component using preventScrollReset={true} flag. This means that no matter how high the user is on the page, he remains on it, without visible changes. However, when using SmoothScroll, every such action means that it must animate a smooth scroll to the block of the screen the user was on. Is there any way to disable scrolling after a reactive url change? Unless of course it's an anchor, anchors require scrolling.