Skip to content
Permalink
Browse files

Make smooth scrolling available for internal links

Links with the class "scrollTo" are now using smooth scrolling.
  • Loading branch information...
TN03 committed May 16, 2019
1 parent 5d593c3 commit d244f9b10e7ef60faeb96fc9b8f199a0de93cbd6
Showing with 1 addition and 2 deletions.
  1. +1 −2 examples/onepage.js
@@ -141,8 +141,7 @@ jQuery(function ($) {
}
}
initMenuClasses();
//$("a.scrollTo").click(function (e) {
$("ul.onepage_menu a").click(function (e) {
$("ul.onepage_menu a, a.scrollTo").click(function (e) {
var hash = this.hash;
if (hash.length > 0 && ONEPAGE.isOnepage) {
scrollToId(hash);

0 comments on commit d244f9b

Please sign in to comment.
You can’t perform that action at this time.