canvas: expose touch pressure (as event.force) in the touch script.

This commit is contained in:
jean-emmanuel 2021-12-19 17:41:17 +01:00
parent cb68a80309
commit 447729443f
3 changed files with 9 additions and 1 deletions

View file

@ -28,7 +28,9 @@ module.exports = {
traversing: e.traversing,
traversingStack: e.traversingStack,
multitouch: e.multitouch,
isTouch: e instanceof Touch
isTouch: e instanceof Touch,
force: e.webkitForce || e.force || 0
}
},