title: Scroll to position using Skrollr on mobile
body: <p>Is there a way to scroll to a position on a page on mobile using javascript? I'm currently using the skrollr library, and while great on desktop, I can't seem to get any scroll methods to work to take a user to a specific position on the page onclick.I've tried libraries like scrollTo and jquery to try and work, but it seems as if skrollr has problems with these methods.</p>
  
  <p>I have the following function:</p>
  
  <pre><code>function scrollAbout() {
                  document.getElementById("nav").style.height = "0%";
                  window.scroll({
                      top: 2180, 
                      behavior: 'smooth' 
                  });
              }
  </code></pre>
  
  <p>And here's the DOM element with the function applied:</p>
  
  <pre><code>&lt;li onclick="scrollAbout();"&gt;&lt;a class="menuitem" style="text-align:center;" id="tour"&gt;ABOUT&lt;/a&gt;&lt;/li&gt;
  </code></pre>
  
  <p>On a side note,</p>
  
  <p>I keep getting the following error which is probably why I can't get the click to work.</p>
  
  <pre><code>skrollr.min.js:2 Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/5093566007214080(anonymous function)
  </code></pre>
  
  <p>Can anybody see how I might achieve click to scroll position despite skrollr?</p>