Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

107
Visualizações
Scroll top button on Mobile breaks if tapping it while content still scrolling

I added a scroll to top button in my page when user navigates the page a bit. And basically it works perfectly fine on desktop browser and mobile version in desktop browser. But, if tested on real mobile device the behavior is different, here if you scroll with a fast gesture the website is continued being scrolled, and if you tap on the scroll-to-top btn in that moment, it scrolls to top but all the content dissapears (cards and header) and only the full height background remains, and only after that if you scroll once more the content appears again. But if you wait after the slide gesture for the scrolling to stop and after only that press the button, it works just as it should.

EDIT: if scroll to top with behavior: "smooth" instead of auto, it fixes it

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda