Skip to content

Commit

Permalink
Update smooth-scroll.js (vuejs#726)
Browse files Browse the repository at this point in the history
* - Update smooth-scroll.js to  v10.2.1

* - Fix for working sidebar-links
  • Loading branch information
Alex-Sokolov authored and kazupon committed Jan 24, 2017
1 parent 6f56459 commit 5a77814
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion themes/vue/source/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,10 @@

var animating = false
sectionContainer.addEventListener('click', function (e) {
e.preventDefault()

// Not prevent hashchange for smooth-scroll
// e.preventDefault()

if (e.target.classList.contains('section-link')) {
sidebar.classList.remove('open')
setActive(e.target)
Expand Down
4 changes: 2 additions & 2 deletions themes/vue/source/js/smooth-scroll.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5a77814

Please sign in to comment.