diff --git a/apps/web/src/lib/components/chat/MessageList.svelte b/apps/web/src/lib/components/chat/MessageList.svelte index a534396..3aae627 100644 --- a/apps/web/src/lib/components/chat/MessageList.svelte +++ b/apps/web/src/lib/components/chat/MessageList.svelte @@ -425,14 +425,6 @@ return grupos; } - function handleScroll(e: Event) { - const target = e.target as HTMLDivElement; - // Considerar "no final" se estiver a menos de 150px do final - const distanciaDoFinal = target.scrollHeight - target.scrollTop - target.clientHeight; - const isAtBottom = distanciaDoFinal < 150; - shouldScrollToBottom = isAtBottom; - } - async function handleReagir(mensagemId: Id<'mensagens'>, emoji: string) { await client.mutation(api.chat.reagirMensagem, { mensagemId,