Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

139
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!