iOS focused input with keyboard causes entire screen to scroll. #9368
Unanswered
slyguy5646
asked this question in
Q&A
Replies: 2 comments
-
I'm pretty sure we need to configure the Webview to have: The issue is, I have no idea how to do that from Tauri itself. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Actually method_1 in here worked for me on Tauri 2.0 + iOS https://gist.github.com/kiding/72721a0553fa93198ae2bb6eefaa3299 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm having an issue with the tauri beta that I can't seem to find a fix for. From the most basic tauri beta react app (created with
npm create tauri-app@latest -- --beta
) when an input is focused and the iOS keyboard is active, the entrie webview will scroll out of the way.When the input is not focused (hidden keyboard) the app looks as expected.
Then, when the input is focused and the keyboard pops up, the whole app scrolls (seemingly making the bottom of the app meet the keyboard).
It would be understandable for the view to move a bit because the input is probably in the way of the keyboard but the amount it does move is strange. And not being able to control this scroll isn't optimal.
So far, I've looked at tauri-apps/wry#557 but I'm not sure that is a related issue. I've tried various css configurations with height and tried to fix it with JS by monitoring inner height and adjusting the screen accordingly but nothing has seemed to work so far.
Heres
App.tsx
And
styles.css
Any suggestions would be great. Thanks.
Beta Was this translation helpful? Give feedback.
All reactions