From cae6d886de116c8c0f3c7b58f154f56af560b043 Mon Sep 17 00:00:00 2001 From: deyvisonwanderley Date: Mon, 8 Dec 2025 23:19:53 -0300 Subject: [PATCH] refactor: remove unused scroll handling function from MessageList component to improve code clarity and maintainability --- apps/web/src/lib/components/chat/MessageList.svelte | 8 -------- 1 file changed, 8 deletions(-) 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,