Merge pull request #8580 from marcjansen/tsc-ts2367-one-less
Cast POINTER_ID before comparison
This commit is contained in:
@@ -305,7 +305,7 @@ class TouchSource extends EventSource {
|
||||
// Never remove pointerId == 1, which is mouse.
|
||||
// Touch identifiers are 2 smaller than their pointerId, which is the
|
||||
// index in pointermap.
|
||||
if (key != POINTER_ID && !this.findTouch_(touchList, key - 2)) {
|
||||
if (key != /** @type {string} */ (POINTER_ID) && !this.findTouch_(touchList, key - 2)) {
|
||||
d.push(value.out);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user