diff --git a/tests/pointerevent.html b/tests/pointerevent.html index c0ee7ab0..ccea5eb9 100644 --- a/tests/pointerevent.html +++ b/tests/pointerevent.html @@ -179,7 +179,7 @@ for (const p of Object.keys(oTemp[input]).sort()) { // sort so array is in order when needed let x = oTemp[input][p][k] // force is variable - if ('force' == p) {if (!aStable.includes(x)) {x = 'float'}} + if ('force' == k) {if (!aStable.includes(x)) {x = 'float'}} aSet.add(x) aArray.push(x) } @@ -283,7 +283,9 @@ for (const p of Object.keys(oTemp[input]).sort()) { // sort so array is in order when needed let x = oTemp[input][p][k] // active pen pressure is variable between 0-1 - if ('pressure' == p || 'mozPressure' == p) {if (!aStable.includes(x)) {x = 'float'}} + if ('pressure' == k || 'mozPressure' == k) { + if (!aStable.includes(x)) {x = 'float'} + } aSet.add(x) aArray.push(x) }