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

239
Views
How to check if scrollbar thumb is visible? (part of scrollbar that gets dragged around)

For my application, the scrollbar is always present as a placeholder -- whether or not it is actually functional (or if a thumb exists). As a result, checking if a scrollbar is visible does not help. To get around this, am trying to detect if the scrollbar is active by checking the thumb.

With ::-webkit-scrollbar, would assume it is possible to check the thumb's height. However, it is not fully supported across browsers. Is there another way to check for the presence of a scrollbar thumb?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

You can check if scrollHeight is bigger than clientHeight , then we know the scrollbar would be shown since there would be overflow the container element holding.

about 4 years ago · Juan Pablo Isaza Report
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!