Change smooth scroll to javascript

This commit is contained in:
Dominik Korsa 2019-03-04 16:08:16 +01:00
parent 1759b5f9e0
commit 40e79a8a73

View file

@ -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({