canvas: still working on ios data polling
This commit is contained in:
parent
428e5d7d12
commit
4887aed82a
3 changed files with 14 additions and 10 deletions
|
|
@ -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]
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue