Change smooth scroll to javascript
This commit is contained in:
parent
1759b5f9e0
commit
40e79a8a73
1 changed files with 10 additions and 1 deletions
|
@ -43,11 +43,20 @@ export default {
|
|||
eventAction: 'click',
|
||||
});
|
||||
},
|
||||
otherOptionsClick() {
|
||||
otherOptionsClick(e) {
|
||||
this.$ga.event({
|
||||
eventCategory: 'other-download-options-link',
|
||||
eventAction: 'click',
|
||||
});
|
||||
|
||||
const element = document.getElementById('download');
|
||||
if (element.scrollIntoView) {
|
||||
e.preventDefault();
|
||||
|
||||
element.scrollIntoView({
|
||||
behavior: 'smooth',
|
||||
});
|
||||
}
|
||||
},
|
||||
discordClick() {
|
||||
this.$ga.event({
|
||||
|
|
Loading…
Reference in a new issue