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

155
Visualizações
DOM `pointermove` event fires twice with same coordinate on iPad+Apple Pencil

While I was fiddling with Pointer Events, I found that pointermove events fires twice on exactly same coordinate if I touch iPad with Apple Pencil.

The specification says:

A user agent MUST fire a pointer event named pointermove when a pointer changes coordinates. Additionally, when a pointer changes button state, pressure, tangential pressure, tilt, twist, or contact geometry (e.g. width and height) and the circumstances produce no other pointer events defined in this specification then a user agent MUST fire a pointer event named pointermove.

So I quickly wrote a simple "event logger", which just dumps all the properties of PointerEvent to the textarea.

https://jsfiddle.net/xb8jgptw/18/show

If I swipe the screen with Apple Pencil, pointermove fires twice on every coordinate, without changing any properties: swipe with stylus

With my finger, it works as expected: swipe with finger

Though it is easy to handle this problem (just ignore every other event), I just want to know why is this happening or if this is the expected behavior.

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