canvas: still working on ios data polling

This commit is contained in:
jean-emmanuel 2022-10-19 17:48:04 +02:00
parent 428e5d7d12
commit 4887aed82a
3 changed files with 14 additions and 10 deletions

View file

@ -46,9 +46,9 @@ module.exports = {
ev.touchType = e.touchType
// iOS-pollable event properties
for (var p of ['altitudeAngle', 'azimuthAngle', 'force']) {
Object.defineProperty(ev, p, {
Object.defineProperty(ev, 'get_' + p, {
enumerable: true,
get: ()=>e[p]
value: ()=>e[p]
})
}
}