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

140
Visualizações
How to trigger touch gesture that's equivalent to onMouseEnter and onMouseDown

Trying to find a solution for adding touch support to a simple letter search game. It uses four events to handle the game functionality for non touch devices (onMouseLeave, onMouseEnter, onMouseDown and onMouseUp). onMouseEnter handler has a console.log in it, with the object that I'm looking to get back and that works perfectly good - when hovering over different rows/columns it brings back different object.

When implementing the similar functionality for touch devices and using onTouchMove (in counter for onMouseEnter) it locks the log on the first object returning only that first letter repeatedly.

There's a codesandbox for it: https://codesandbox.io/s/dawn-sun-fw5c6t?file=/src/index.js

Is there any workaround for it? Has any of you guys had some issues with touch gestures before?

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