title: Check if user scrolled beyond certain amount
body: <p>I need show button <code>backtotop</code> only if user has scrolled beyond &gt; 250. How I can do it?</p>
  <p><strong>My code:</strong></p>
  <pre><code>&lt;template&gt;
      &lt;div&gt;
          &lt;button v-if=&quot;checkScroll&quot; class=&quot;goTop&quot; @click=&quot;backToTop&quot;&gt;
              &lt;i class=&quot;fa fa-angle-up&quot; aria-hidden=&quot;true&quot;&gt;&lt;/i&gt;
          &lt;/button&gt;
      &lt;/div&gt;
  &lt;/template&gt;
  
  &lt;script&gt;
      export default {
          methods: {
              computed: {
                  checkScroll() {
                     if ($(document).scrollTop() &gt; 250) {
                         return true;
                     } else {
                         return false;
                     }
                 }
             },
             backToTop() {
                this.$scrollTo('html');
             },
          }
      }
  &lt;/script&gt;
  </code></pre>
  <p>My code is not working. Errors I do not get. Button is hidden.</p>