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

171
Views
OnClick Scroll being invoked with wrong current position

I have a vertical scroll bar with two arrows. One for up, one for down. In order to scroll the user must click one of these arrows. They work well enough as is but I found a small bug. If the user clicks the arrow once, it works great. If the user holds down the arrow, it works great as well. The issue is when the user make multiple consecutive clicks. It is as though the click is happening too fast before the last click event has completely finished. Each element is 60px in height and if it were to work as it should, the last element would be flush on the bottom but after making multiple individual clicks, half of the element at the end will be cut off. It is as though the first click is happening and while in the middle of the scroll animation, the next function is invoking and using the incorrect current position. Is there a way for me to wait for each individual click to complete before allow the next to be invoked? I don't want the button to gray out and disable. Thank you

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!