-
Notifications
You must be signed in to change notification settings - Fork 58
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
[iOS] Fix autoscroll behaviour. #1939
Conversation
@etoledom The link for the rn-keyboard-aware-scroll-view PR is incorrect. |
Fixed, thank you! |
On the top of my head:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@etoledom The scroll refinements look great, nice work! 👏
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@etoledom The scroll refinements look great, nice work! 👏
This can be related to removed parameters during the first set of inner blocks feature: There are already some props we can use for this, like: inputAccessoryViewHeight, extraBottomInset. So before introducing new fixes we could benefit from trying these. |
Thanks! it is so much better! I tested this with following:
It looks like the current mechanism acts differently on devices without safearea, and the extra caret space isn't working on iPhone 8. It manifests itself when the caret is somewhere different than the last line: I think this is not too big of a deal on user's end but it is worth investigating because we made it so far and it'd be good not to leave a mystery bug for the future 🤔 |
Thank you for testing @pinarol ! This last issue should be fixed by wordpress-mobile/react-native-keyboard-aware-scroll-view#10 I updated this PR to include that change, so it can be tested after pulling and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for testing @pinarol 🎉 |
This PR tries to fix wrong autoscroll behaviour on iOS.
Fixes wordpress-mobile/WordPress-iOS#13224
Fixes #1274
Fixes #1276
Fixes #1275
Fixes #891
Note: Aztec changes on Podfile are unrelated. It might be a missing
yarn preios
on a previous PR.gutenberg
PR: WordPress/gutenberg#20334rn-keyboard-aware-scroll-view
PR: wordpress-mobile/react-native-keyboard-aware-scroll-view#9Enhancements:
is caret under keyboard
calculation used to kick the autoscroll on typing now considers the extra height (the bars). In this way, if the bottom part of the inner toolbar goes behind the global toolbar, it will autoscroll.All these changes are demonstrated on the following gifs:
To test:
NOTE: For the external keyboard test is necessary to test with a real device.
@pinarol - Any other edge case that you consider we should test?
PR submission checklist:
RELEASE-NOTES.txt
if necessary.