Home » Android » javascript – Android Webview multitouch touchstart event not working with more than 2 fingers

javascript – Android Webview multitouch touchstart event not working with more than 2 fingers

Posted by: admin May 14, 2020 Leave a comment

Questions:

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

How to&Answers:

The problem was on my HTC One device.
Just turning on Magnification Gestures my device start to catch all events triggered with my fingers(more than two)

enter image description here