Skip to content

Commit af36e5a

Browse files
NataliaTepluhinaphanan
authored andcommitted
fix: fixed smooth scrolling (#2038)
1 parent 0d9b754 commit af36e5a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

themes/vue/source/js/common.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -410,6 +410,7 @@
410410

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

0 commit comments

Comments
 (0)