Skip to content

Commit

Permalink
tweak force in hash
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorin-Oakenpants authored Oct 16, 2024
1 parent acc9998 commit 5df2d33
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/pointerevent.html
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,12 @@
let aRemainder = ['force','radiusX','radiusY','rotationAngle']
aRemainder.forEach(function(k){
let value = oTemp[k]
oTouch[k] = value
oDisplay.push(s6 + k.padStart(padlen) +": "+ sc + value)
// force is variable, so alter our hash to make it stable
if ('force' == k) {
if (0 !== value && 1 !== value) {value = 'variable'}
}
oTouch[k] = value
})
dom.touch.innerHTML = oDisplay.join("<br>") + '<br><br>'
let hash = mini(oTouch)
Expand Down

0 comments on commit 5df2d33

Please sign in to comment.