You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 27, 2021. It is now read-only.
I am experiencing a strange scroll is on iOS. When focusing an input or the content size changes, the screen scrolls up out of view.
I've debugged this somewhat and I can see the issue is coming from the _onRef function. Specifically, y in measureInWindow returns about 700 meaning that the scroll calculation is always out. If I add a delay to the setTimeout, e.g.
then y becomes 25 and the scrolling works exactly as expected. Im not sure what the purpose of this _onRef function is and Im not confident that my solution is the best - feels hacky without knowing what this function is supposed to be doing.
Perhaps I am doing something wrong somewhere else but I feel like I have exhausted all attempts to resolve this now. Are you able to help?