title: iOS safari: scrolling is broken inside position: fixed; elements
body: <p>Inside a <code>position: fixed;</code> element, scrolling elements will &quot;lock&quot; if you try to scroll them the wrong way at the start of a touch.</p>
  <p>Example: touch the screen and drag downwards, then back up. The element won't scroll. If you release, wait a few seconds, then try dragging upwards, it will scroll.<br />
  <a href="http://12me21.github.io/scroll-test.html" rel="noreferrer">http://12me21.github.io/scroll-test.html</a></p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>body {
     position: fixed;
     top: 0;
     bottom: 0;
     left: 0;
     right: 0;
  }
  #scroll-container {
     overflow-y: scroll;
     height: 100%;
  }
  #scroller {
     height: 200vh;
     font-size: 50px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;body&gt;
     &lt;div id=scroll-container&gt;
        &lt;div id=scroller&gt;Test&lt;br&gt;more text&lt;/div&gt;
     &lt;/div&gt;
  &lt;/body&gt;</code></pre>
  </div>
  </div>
  </p>
  <p>This answer: <a href="https://stackoverflow.com/a/51733026/6232794">https://stackoverflow.com/a/51733026/6232794</a> seems to be the same problem I'm having, but the fix no longer works. It seems to happen inside all fixed elements and isn't caused by <code>-webkit-overflow-scrolling: touch;</code> anymore.</p>
  <p>Is there any way to fix this now? Or do I just need to avoid <code>position: fixed;</code> entirely?</p>