Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

435
Vistas
Angular: when update from 8 to 9 - hammerjs + @angular/platform-browser stopped working

I'm using hammerjs for detecting swipe on a small Angular 8 app.

I followed this article - https://medium.com/angular-in-depth/gestures-in-an-angular-application-dde71804c0d0 - and I'm using hammerjs with @angular/platform-browser.

However, when 3 days ago Angular 9 was released - I updated with no issues, but now swiping detection is not working at all :( ... don't see errors or warnings. Also - didn't see any notes for platform-browser changes in the update release notes.

Any ideas what's wrong and how to fix it?

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

I had the same issue and managed to come across this article which has solved my problem.

hammerjs is now optional
In earlier versions hammerjs was required to add gesture support, it is optional now and all implementation used internally is removed, you can use HammerModule from @angular/platform-browser.

Simply adding the HammerModule import to my AppModule fixed it.

over 4 years ago · Santiago Trujillo Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda