From d2331be3ccd06ef8f43ad5179df00b128b364ceb Mon Sep 17 00:00:00 2001 From: Horgun Date: Mon, 19 Sep 2022 15:03:41 -0400 Subject: [PATCH] Bug no scroll Ao rolar a fila de tickets estava pulando uma pagina na chamada ao backend (que eu testei estava pulando da pagina 1 direto pra 3), isso eu testei na parte da busca tb. --- frontend/src/components/TicketsList/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/components/TicketsList/index.js b/frontend/src/components/TicketsList/index.js index abd1b28..37e5de5 100644 --- a/frontend/src/components/TicketsList/index.js +++ b/frontend/src/components/TicketsList/index.js @@ -263,6 +263,7 @@ const reducer = (state, action) => { const { scrollTop, scrollHeight, clientHeight } = e.currentTarget; if (scrollHeight - (scrollTop + 100) < clientHeight) { + e.currentTarget.scrollTop = scrollTop - 100; loadMore(); } };