2016-05-18 33 views

回答

0

這似乎是由於對iOS Safari中Apple使用的W3C規範的不同閱讀。 只有一根手指觸摸屏幕時,Android Chrome會爲觸摸提供0的標識符。當兩個手指接觸時,它會給它們0和1的標識符等等。這實際上符合W3C規範的寫法:

identifier of type long, readonly
An identification number for each touch point. When a touch point becomes active, it must be assigned an identifier that is distinct from any other active touch point. While the touch point remains active, all events that refer to it must assign it the same identifier.

注意它只有相對於其他任何有效觸摸點唯一的,這意味着它可以是相同是之前的觸摸點不再活躍。這比Apple的實現少得多。