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

316
Visualizações
FireFox: scrollbars overlap when Windows option ‘Always show scrollbars’ is off

In an application I get a right hand side sidebar with a vertical scrollbar. As the result if the user has moved the sidebar to the right-most part of the screen, there is 2 vertical sidebars side by side: the one of sidebar + the one of the browser.

I get an issue with FireFox(101.0.1)/Win11(21H2) when the Windows option ‘Always show scrollbars’ is off. As FireFox is ‘hiding’ scrollbars, the locations where the scrollbars appear overlap. As the result it is not possible to mouse over and display the sidebar’s scrollbar. It is possible to replicate the issue with the code snippet below.

By writing a few lines of javascript I can hide the browser’s scrollbar when the cursor is coming from the sidebar. However I didn’t find any way to detect if I have to make the fix active.

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div style="width:200vw; height:200vh; background-color:lightblue;"></div>
    <div style="position:fixed; width:50vw; height:50vh; bottom:0px; right:0px; overflow:auto;">
        <div style="width:200vw; height:200vh; background-color:lightgreen;"></div>
    </div>
</body>
</html>
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