[🐴] 🤞 This should be the final message list change - Use dispatchCommand so we don't need to know the content height (#4090)

* handle keyboard scroll more elegantly

simplify

missing `runOnUI`

better naming to avoid confusion

nit

remove unused function

use `dispatchCommand` in `onContentSizeChanged` as well

use `dispatchCommand` so we don't need to know the content height

remove `isMomentumScrolling`

* better timing

* nit

* another nit

* handle message input resizes better too

* account for other size changes like emoji keyboard opening

* one last nit

* just adding comments

* account for dragging

* make it easier to read

* add a comment

* 🤦‍♀️

* remove a little bit of that padding at the top
This commit is contained in:
Hailey 2024-05-18 12:29:23 -07:00 committed by GitHub
parent 2eaecfcaa4
commit 5343910570
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 136 additions and 106 deletions

View file

@ -19,7 +19,6 @@ export function MessageInput({
onSendMessage,
}: {
onSendMessage: (message: string) => void
scrollToEnd: () => void
}) {
const {_} = useLingui()
const t = useTheme()