locomotivemtl / locomotive-scroll

🛤 Detection of elements in viewport & smooth scrolling with parallax.
https://locomotivemtl.github.io/locomotive-scroll
MIT License
7.98k stars 1.12k forks source link

See some bugs when i refresh the page in google chrome #562

Open CoderBaljit opened 4 months ago

CoderBaljit commented 4 months ago

Hello 👋

when i refresh my website then locomotive stuck in the middle of window screen

when i refresh my website then locomotive stuck and all the website scroll are stuck and page are also stuck in the middle of screen when i try to refresh my web page for the bug's resolve but the bug are not resolve to resolve this bug i will again and again restart my projects, and these things are waste of time please send me solution's of these bug and how to stop it.

Thank you 👊

jwinr commented 2 months ago

I saw your site (assuming it’s the one linked on your GitHub), and noticed you’re using JavaScript. You’ll need to add a function to reset the scroll position to the top on page load. Something like window.scrollTo(0, 0) should handle it, though you’ll likely need to make sure Locomotive Scroll is aware of the change, too.

CoderBaljit commented 2 months ago

Thanks sir for this solutions 👍

On Mon, 16 Sept 2024 at 01:41, Jacob Winters @.***> wrote:

I saw your site (assuming it’s the one linked on your GitHub), and noticed you’re using JavaScript. You’ll need to add a function to reset the scroll position to the top on page load. Something like window.scrollTo(0, 0) should handle it, though you’ll likely need to make sure Locomotive Scroll is aware of the change, too.

— Reply to this email directly, view it on GitHub https://github.com/locomotivemtl/locomotive-scroll/issues/562#issuecomment-2351776964, or unsubscribe https://github.com/notifications/unsubscribe-auth/BAQGHDF25WDV7ENY6PQNVBDZWXSY3AVCNFSM6AAAAABK2FBV66VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJRG43TMOJWGQ . You are receiving this because you authored the thread.Message ID: @.***>