From fdfb30b0dda6ab81fbbb6c6c667bc657d1430bf8 Mon Sep 17 00:00:00 2001 From: Thorin-Oakenpants Date: Sat, 19 Oct 2024 05:34:02 +0000 Subject: [PATCH] check the right variable --- tests/pointerevent.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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) }