Skip to content
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 up when keyboard appears, only when at the bottom. #1831

Open
hidayetozsoy opened this issue Feb 14, 2024 · 0 comments
Open

Scroll up when keyboard appears, only when at the bottom. #1831

hidayetozsoy opened this issue Feb 14, 2024 · 0 comments

Comments

@hidayetozsoy
Copy link

I'm aware of the property scrollsToLastItemOnKeyboardBeginsEditing, but it doesn’t fully meet my needs and, in my opinion, lacks intuitiveness. This property triggers a scroll to the bottom with every text change in messageInputBar.inputTextView. Consequently, when not at the very bottom of messagesCollectionView, it attempts to scroll down multiple times, which results in a less-than-ideal user experience. I believe adopting an approach similar to WhatsApp's, where the scroll view moves up by the keyboard's height, would be more intuitive. While I plan to implement this logic myself, it's challenging since MessageKit calculates the height of messageInputBar, so it might take me some time to work through. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant