Skip to content

Commit

Permalink
Make smooth scrolling available for internal links
Browse files Browse the repository at this point in the history
Links with the class "scrollTo" are now using smooth scrolling.
  • Loading branch information
TN03 committed May 16, 2019
1 parent 5d593c3 commit d244f9b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/onepage.js
Expand Up @@ -141,8 +141,7 @@ jQuery(function ($) {
} }
} }
initMenuClasses(); initMenuClasses();
//$("a.scrollTo").click(function (e) { $("ul.onepage_menu a, a.scrollTo").click(function (e) {
$("ul.onepage_menu a").click(function (e) {
var hash = this.hash; var hash = this.hash;
if (hash.length > 0 && ONEPAGE.isOnepage) { if (hash.length > 0 && ONEPAGE.isOnepage) {
scrollToId(hash); scrollToId(hash);
Expand Down

0 comments on commit d244f9b

Please sign in to comment.