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

211
Visualizações
propagating scroll event to perfect-scrollbar

Consider a scenario when you have a responsive design, with 3 columns.

On desktop:

  • left menu
  • main column (whole page is scrollable)
  • right menu

On mobile:

  • top menu
  • main column (scrollable)
  • bottom menu

On desktop when scroll event occurs anywhere on the page - I would like to be able to scroll the content inside the content column. On mobile, we scroll the content within the main column itself.

Here is the example: https://jsfiddle.net/sf8m97L2/5/

https://user-images.githubusercontent.com/20644772/165400320-e26e7157-3014-4dda-800d-2e441c98c654.mp4

So here comes my issue/question - is it possible somehow to propagate scroll events from anywhere on the page to the perfect-scrollbar target location (in my case, form body to the content column)?

Currently if the user wants to scroll the content in the main column the user has to hover the mouse over that area specifically. I would like to allow scrolling when the cursor is outside the default zone. Please check the fiddle.

Using latest version 1.5.5

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

You can use Sticky-sidebar to do what described.

Of course, the scroll bar will not be in blocks, but in the main window, but you can scroll while holding the cursor at any position of the document

See example: https://blixhavn.github.io/sticky-sidebar-v2/examples/basic.html

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