Skip to content

Commit

Permalink
fix: fixed smooth scrolling (#2038)
Browse files Browse the repository at this point in the history
  • Loading branch information
NataliaTepluhina authored and phanan committed Feb 28, 2019
1 parent 0d9b754 commit af36e5a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions themes/vue/source/js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,7 @@

new SmoothScroll('a[href*="#"]', {
speed: 400,
speedAsDuration: true,
offset: function (anchor, toggle) {
let dataTypeAttr = anchor.attributes['data-type']
if(dataTypeAttr && dataTypeAttr.nodeValue === 'theme-product-title') {
Expand Down

0 comments on commit af36e5a

Please sign in to comment.