Consider the following code:
canvas.addEventListener('touchstart', function(event) {
console.log('start');
});
When I tap with 2 fingers at the same time I have the following output (which is cool because is printed two times):
I/SnapScrollController(26508): setSnapScrollingMode case-default no-op
I/chromium(26508): [INFO:CONSOLE(69)] "start", source: file:///android_asset/index.html (69)
I/chromium(26508): [INFO:CONSOLE(69)] "start", source: file:///android_asset/index.html (69)
But when I use more than 2 fingers at the same time I had the same result, what am I doing wrong? I was expected the log "start" as many times as fingers I was using.
In the other side touchmove
and touchend
works well.
I have uploaded the code here
event.touches.length
in your touchstart and touchmove event handlers? The problem might be that when you put our third finger down, you move one of the already touching fingers and cause the system to change to "moving" mode so it fires off touchmove events from then on. – Maggioretouchstart
. On that page, it shows the length ofevent.touches
so it would should something like "touch start 2" "touch start 3" indicating that the firsttouchstart
picked up my first two fingers and the second picked up the third finger. – Maggiore