diff --git a/app/mobile/src/session/conversation/Conversation.jsx b/app/mobile/src/session/conversation/Conversation.jsx index bc18870e..03d8fac5 100644 --- a/app/mobile/src/session/conversation/Conversation.jsx +++ b/app/mobile/src/session/conversation/Conversation.jsx @@ -43,8 +43,10 @@ export function ConversationBody() { const ref = useRef(); const latch = () => { - actions.latch(); - ref.current.scrollToIndex({ animated: true, index: 0 }); + if (!state.momentum) { + actions.latch(); + ref.current.scrollToIndex({ animated: true, index: 0 }); + } } return ( @@ -52,6 +54,8 @@ export function ConversationBody() { { updateState({ latched: false }); }, + setMomentum: () => { + updateState({ momentum: true }); + }, + clearMomentum: () => { + updateState({ momentum: false }); + }, }; return { state, actions };