Back To Top functionality doesn't work with Scrollbars
See original GitHub issueHello!
There is a bug or configuration conflict.
My website theme has Back To Top button.
I’m using Gantry 5 Framework based on Grav CMS. Here is a demo, how the Back to top function is made:
The problem is that on my website Back To Top doesn’t work once OverlayScrollbars is loaded. Clicking on anchor makes nothing and there are no errors in the console.
I’m initializing scrollbars like this:
$(function() {
$("body").overlayScrollbars({
className: "os-theme-light custom-scroll",
});
});
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Back to top button not triggering properly - Stack Overflow
I have a back to top button that appears when you scroll a little bit .It's working fine but when scrolling if I...
Read more >How to Fix Scroll Bar Jumps To Top When ... - The Geek Page
For instance, you open the File Explorer and try to scroll down, but the scroll bar doesn't go down. It's stuck at the...
Read more >How to Make a Back to Top Button and Page Progress Bar ...
Here, the scrollContainer function returns document.documentElement , which is nothing but the HTML element of our document. In case that is not ......
Read more >scroll-behavior - CSS: Cascading Style Sheets - MDN Web Docs
The scroll-behavior CSS property sets the behavior for a scrolling box when scrolling is triggered by the navigation or CSSOM scrolling APIs ...
Read more >Bootstrap Scroll To Top Button - free examples & tutorial
Create a button that appears when you start scrolling and on click smooth scrolls you to the top of the page. To learn...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@KingSora thank you! I’ve added the
onclick="backToTopBtnClick();"event to a link, everything works just fine 👍