<template>
  <div class="scroll-up-button">
    <div class="button-block" @click="scrollToTop">
      <img src="~@/assets/images/icons/arrow.png" />
    </div>
  </div>
</template>

<script>
import Misc from '@/helpers/misc';

export default {
  data() {
    return {};
  },
  methods: {
    scrollToTop: function() {
      Misc.scrollToTop(500);
    }
  }
};
</script>

<style lang="scss" scoped>
@import 'ScrollUpButton.scss';
</style>

<template>
  <div class="scroll-up-button">
    <div class="button-block" @click="scrollToTop">
      <img src="~@/assets/images/icons/arrow.png" />
    </div>
  </div>
</template>

<script>
import Misc from '@/helpers/misc';

export default {
  data() {
    return {};
  },
  methods: {
    scrollToTop: function() {
      Misc.scrollToTop(600);
    }
  }
};
</script>

<style lang="scss" scoped>
@import 'ScrollUpButton.scss';
</style>

Fix scroll up animation glitch on mobile
Fix scroll up animation glitch on mobile
