title: UIScrollView jumps when content has almost the same size as screen
body: <p>I have an UIScrollView that &quot;jumps&quot; to the end of the content on touch when the content has almost the same size as the screen. This does not happen when the content is significantly smaller or larger (see video).</p>
  <p>I assume this has something to do with the safe area as this problem does not appear when the ScrollView is smaller than the safe area.</p>
  <p>iPhone 13 Pro Max / Screen width: 926pt / Safe Area width: 838pt</p>
  <ol>
  <li>Content Width: 850pt -&gt; Jumping on touch ❌</li>
  <li>Content Width: 1000pt -&gt; Normal scrolling ✅</li>
  <li>Content Width: 600pt -&gt; No scrolling ✅</li>
  </ol>
  <p><a href="https://i.stack.imgur.com/IwvXS.gif" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IwvXS.gif" alt="UIScrollView" /></a></p>
  <p><strong>UIScrollView Setup</strong></p>
  <p>View -&gt; ScrollView (white) -&gt; ContentView (grey) -&gt; BlueView (blue)</p>
  <p>I got a ScrollView that is the same size as the screen (leading, trailing, top, bottom constraints to Superview = 0). Inside is a ContentView (leading, trailing, top, bottom constraints to ScrollView  = 0). It also has constraints to be the equal with and height of the highest level view of the ViewController (with a priority of 250). This ContentView wraps around the BlueView which defines its size. It's basically setup as described here: <a href="https://medium.com/@pradeep_chauhan/how-to-configure-a-uiscrollview-with-auto-layout-in-interface-builder-218dcb4022d7" rel="nofollow noreferrer">https://medium.com/@pradeep_chauhan/how-to-configure-a-uiscrollview-with-auto-layout-in-interface-builder-218dcb4022d7</a></p>
  <p>As I wrote before, I assume this could have something to do with the safe area and me having some incorrectly setup contraints for the Scroll View, but I can't figure out where I got it wrong. Thanks!</p>
  <p><a href="https://i.stack.imgur.com/8vQzA.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8vQzA.jpg" alt="Constraints" /></a></p>