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

278
Visualizações
smooth scroll not working on safari browser when using nextjs?

what am trying to achieve is the scroll behaviour: smooth but on safari, when clicking a link in the menu, all browsers will smoothly go the the section that the link refer to except for safari it will jump to section immediately, I tried every single option to achieve this (react-scroll, smooth-scroll, smoothScroll polyfill) nothing works, everyone referring to smooth scroll polyfill but its not working, there is no error it just do nothing. I put it inside use effect and other options, I also tried to removed the "window.forceSmoothScrollPolyfill = true;" also not working.

am I doing something wrong here?

import smoothscroll from 'smoothscroll-polyfill';


if (typeof window !== undefined) {
  console.log('polyfilled');
  smoothscroll.polyfill();
  window.__forceSmoothScrollPolyfill__ = true;
}  
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