fix pointer events

This commit is contained in:
Anton Lavrenov
2021-10-22 10:09:34 -05:00
parent a6bbbff406
commit 272627a2da
4 changed files with 52 additions and 6 deletions

View File

@@ -965,8 +965,8 @@ export const Util = {
},
_getFirstPointerId(evt) {
if (!evt.touches) {
// fake id for mouse
return 999;
// try to use pointer id or fake id
return evt.pointerId || 999;
} else {
return evt.changedTouches[0].identifier;
}