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

240
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
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