title: scrollIntoView not working on mobile in react useEffect
body: <p>I'm trying to implement my on carousel with the ability to drag on am image to get the next.
  On desktop, everything works fine. On mobile, it does not. And its very interesting to me since if I run the same code in the console, it works.</p>
  <p><a href="https://codesandbox.io/s/objective-cookies-xszv8?file=/src/App.js&amp;resolutionWidth=320&amp;resolutionHeight=675" rel="nofollow noreferrer">Here is a codesandbox with a recreation.</a></p>