Skip to content

Commit 5df2d33

Browse files
tweak force in hash
1 parent acc9998 commit 5df2d33

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/pointerevent.html

+5-1
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,12 @@
146146
let aRemainder = ['force','radiusX','radiusY','rotationAngle']
147147
aRemainder.forEach(function(k){
148148
let value = oTemp[k]
149-
oTouch[k] = value
150149
oDisplay.push(s6 + k.padStart(padlen) +": "+ sc + value)
150+
// force is variable, so alter our hash to make it stable
151+
if ('force' == k) {
152+
if (0 !== value && 1 !== value) {value = 'variable'}
153+
}
154+
oTouch[k] = value
151155
})
152156
dom.touch.innerHTML = oDisplay.join("<br>") + '<br><br>'
153157
let hash = mini(oTouch)

0 commit comments

Comments
 (0)