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

147
Visualizações
Defining window events - firefox & other browsers

I'm trying to pass a TouchEvent to a method using angular. When I define the event as TouchEvent, everything works in Chrome, but Firefox will throw a ReferenceError, "TouchEvent is not defined". When I define the event as window.TouchEvent, the event works with webpack-dev-server even though my editor highlights "window" as an error with, "Cannot find namespace 'window'". The major issue with this is that the window error prevents me from compiling my app using webpack.

My fix has been to pass in the TouchEvent as event:any, but if there's a better fix, I'd like to know. I'd also appreciate an understanding of why this is happening if someone knows. I'm using webpack2 and angular4. Thanks in advance.

over 4 years ago · Santiago Trujillo
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