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

148
Visualizações
Strange behavior with scrollIntoView on my website

I'm just finishing my website made with react and typescript and I noticed weird behavior of my navbar. I use element.scrollIntoView to move screen to specific part of the website using element's id but sometimes it scrolls just a little bit down and that's it but in most of the cases it works just fine.

Website is live here:
https://neidz.github.io/photography_agency/

Part of the code responsible for scrolling is here:
https://github.com/Neidz/photography_agency/blob/master/src/Sections/Navbar/navbar.tsx

To replicate that behavior just click on any of the buttons in navigation at the top and it should happen in maybe 3 tries.

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