-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scroll jank on iOS when keyboard opened in certain layout #1271
Comments
👋 @Amareis NOTE: This comment is auto-generated. Are you sure you have already searched for the same problem? Some people open new issues but they didn't search for something similar or for the same issue. Please, search for it using the GitHub issue search box or on the official inappwebview.dev website, or, also, using Google, StackOverflow, etc. before posting a new one. You may already find an answer to your problem! If this is really a new issue, then thank you for raising it. I will investigate it and get back to you as soon as possible. Please, make sure you have given me as much context as possible! Also, if you didn't already, post a code example that can replicate this issue. In the meantime, you can already search for some possible solutions online! Because this plugin uses native WebView, you can search online for the same issue adding Following these steps can save you, me, and other people a lot of time, thanks! |
Currently I just fork repo and disable
And all is working good. For our app it's perfectly ok, since it is SPA with custom scroll logic, but there should be some more general solution, I think. |
Any updates here? |
This issue is stale and has been automatically closed because it has been open for more than 365 days with no activity. Please reopen a new issue if you still have it. |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue. |
Environment
Device information:
iPhone 6+ (real)
iPhone 13 (simulator)
Description
Given such layout:
a) Webview is inside safe area (just like in repo example)
b) body and html is overflow: hidden and height: 100% (so it should be resized when keyboard is opened)
c) !!! There is input in bottom part of screen (so it will be hidden by keyboard)
Expected behavior:
Click on input with keyboard opening should just resize window with proper layout changes.
Current behavior:
There is pretty strange jank, video attached.
Size of this jank is related to position of input - the more input in keyboard zone, the bigger jank is. Pretty sure it's related to standard safari behavior of scrolling input into view on focus.
Steps to reproduce
scroll-bug.html
inexample/assets
with such content:initialFile: "assets/scroll-bug.html"
inin_app_webiew_example.screen.dart
Images
Simulator.Screen.Recording.-.iPhone.13.-.2022-08-04.at.16.34.37.mov
Additional
There is similar bug in flutter webview widget: flutter/flutter#98090
Also may be related: flutter/flutter#105687
The text was updated successfully, but these errors were encountered: