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

203
Visualizações
VisJS timeline verticalScroll and horizontalScroll = "true" don't work together in global options

For verticalScroll option, the official documentation says that....

Show a vertical scroll on the side of the group list and link it to the scroll event when zoom is not triggered. Notice that defining this option as true will NOT override horizontalScroll. The scroll event will be vertically ignored, but a vertical scrollbar will be visible

But in official demo for visjs and in my project, it doesn't work as expected...

https://visjs.github.io/vis-timeline/examples/timeline/other/verticalScroll.html

If you put verticalScroll and horizontalScroll = "true", verticalScroll is mandatory over all timeline.... and you cannot make horizontalScroll over items...

Any help? any advice?

Thank you,

best regards

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

0

I am using vis timeline with reactjs. You must set zoomKey: 'ctrlKey' in order to use scrolling on entire timeline. I tried with different combinations and it works as following: e.g.

  1. horizontalScroll: true, verticalScroll: true, zoomKey: 'ctrlKey' (only Vertical scroller is shown and both scrolling works)
  2. horizontalScroll: false, verticalScroll: true, zoomKey: 'ctrlKey' (only vertical scroll works and scroller is shown on the left)
  3. horizontalScroll: true, verticalScroll: false, zoomKey: 'ctrlKey' (only horizontal scroll is enabled but no scroller shown, Vertical scrolling is disabled and scroller is hidden as well)
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