Disable Scroll of Text Content
General
What bug do you experience? 🐞
When the message text is longer than the screen size, it starts scrolling and capturing the cursor
How can it be reproduced? 🤔
- Chat view, globally set ios style bouncy scroll physics (also occurs with material, but effect is more obvious with iOS scroll physics) 2) Have a very long text message 3) both the chat list and the text inside the chat can be scrolled. The text message inside the chat should not be scrollable and it should not be capturing the focus preventing scroll of chat list when the user's thumb is on the message bubble.
What behavior is expected? 💡
Text in chat bubble should not scroll, swiping up or down should ONLY scroll the chatlist.
Environment info
Please specify the flutter, flutter-chat-ui versions.
flutter: ... flutter-chat-ui: ...
flutter doctor -v output 👇
Flutter (Channel stable, 3.10.6, on Ubuntu 22.04.2 LTS
Platform
Web, occurs on all touchscreen devices
Additional context
N/A
Thanks for the report, will look into that
@demchenkoalex any luck?
I didn't work on the package yet, lots of work at my day to day job right now
you can submit a PR if you find the issue, will be faster for me to merge and release
I found the bug, the issue is with SelectableText as it contains an implicit scroll behaviour. Consider adding an option to pass NeverScrollableScrollPhysics to this and the upstream flutter_parsed_text library also needs to be updated too
Need to keep it open to not forget :)
not a feature anymore in v2 - user can provide their own implementation if needed