Skip to content

Commit

Permalink
check the right variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorin-Oakenpants authored Oct 19, 2024
1 parent b4a13a8 commit fdfb30b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions tests/pointerevent.html
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down Expand Up @@ -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)
}
Expand Down

0 comments on commit fdfb30b

Please sign in to comment.