WeCodePixels / theia-sticky-sidebar

Glues your website's sidebars, making them permanently visible while scrolling.
MIT License
569 stars 209 forks source link

scrolling jumps to top unexpectedly in Chrome #11

Closed spiritfingerz closed 8 years ago

spiritfingerz commented 8 years ago

See for example http://cfm.us.mensa.org/open/admission-test-registration?test_session_id=1BU8Um3SkR. When in Chrome browser, this scrolls down and then when you get to the bottom jumps back up to the top.

liviucmg commented 8 years ago

Try changing the selector from ".leftSidebar, .content, .rightSidebar" to just ".leftSidebar".

spiritfingerz commented 8 years ago

If I could reach through the Interwebz and give you a high-five I would. That's awesome. I just removed the .content and it fixed it; I left the .rightSidebar in because I want to keep that sticky.

liviucmg commented 8 years ago

Woohoo! Thank you for the Internet high-five. :) If you would like to use .content as well, you would probably need to wrap it inside a <div class="theiaStickySidebar">. Have a great weekend!

spiritfingerz commented 8 years ago

Thanks so much! I always want the content to scroll and the sidebars to stick, so I'm 100% good to go! Woot! Have a great weekend. =)