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

222
Visualizações
in angular by default horizontal scroll in ngx-extended-pdf-viewer not working

I want to implement Ngx-extended-pdf-viewer default (horizontal) scroll but I have implemented below code but not working

https://pdfviewer.net/extended-pdf-viewer/display-options

Version: "ngx-extended-pdf-viewer": "^7.3.2",

private _scrollMode = ScrollModeType.horizontal;

public get scrollMode(): ScrollModeType {
  return this._scrollMode;
}

public set scrollMode(mode: ScrollModeType) {
  this.ngZome.run(() => this._scrollMode = mode);
}

constructor(private ngZome: NgZone) {}
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

Please clone and run this repository: https://github.com/stephanrauh/ngx-extended-pdf-viewer-issues/tree/main/stackoverflow-sanjay. It's my attempt at reproducing your issue. Only it works like charm. So my suggestion is you get my reproducer up and running (just to see if there's a general problem). After that, compare my reproducer to your project. That should help to to find the problem quickly.

If it doesn't, please open a ticket at https://github.com/stephanrauh/ngx-extended-pdf-viewer/issues and send me a reproducer.

BTW, you don't need the setter and the getter. That was necessary for my demo, but in your case, a global variable does the trick just as well. The same applies to using NgZone. I needed it in my demo, you in your case, horizontal scroll is the default and it will never change, so you don't need NgZone.

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