Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 12111

Pointer events dont work correctly on mobile

$
0
0

I have this fragment to handle pointer events:

container.on('pointerdown pointerup pointercancel pointerout pointerleave', console.log);

It works perfectly fine on my pc, but it's different on mobile. When I touch the screen it emits pointerdown (as it should), but as soon as I move my finger it instantly emits pointercancel, pointerout and pointerleave. When I lift my finger up it doesn't emit pointerup.

https://jsfiddle.net/zr8qeo7p/


Viewing all articles
Browse latest Browse all 12111

Trending Articles