Replies: 1 comment 1 reply
-
Because SimpleScrollbar changes your DOM structure. In such case, you'd need to do something like: $(".topBar-Title").click(function () {
$("html, body").animate({ scrollTop: $("#firstDiv .ss-content").offset().top }, 1000);
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a function that scrolls down the page when you click on a button:
$(".topBar-Title").click(function () { $("html, body").animate({ scrollTop: $("#firstDiv").offset().top }, 1000); });
When I add ss-container to the body tag these functions break.
Does anyone have any idea why ?
Beta Was this translation helpful? Give feedback.
All reactions