canvas: expose additional touch event informations (radiusX, radiusY, rotationAngle and iOS-only altitudeAngle, azimuthAngle and touchType)

This commit is contained in:
jean-emmanuel 2022-01-11 19:00:25 +01:00
parent e466c66052
commit 6b1f782d33
3 changed files with 13 additions and 2 deletions

View file

@ -29,8 +29,14 @@ module.exports = {
traversingStack: e.traversingStack,
multitouch: e.multitouch,
isTouch: e instanceof Touch,
force: e.webkitForce || e.force || 0
force: e.webkitForce || e.force || 0,
radiusX: e.radiusX,
radiusY: e.radiusY,
rotationAngle: e.rotationAngle,
// iOS only
altitudeAngle: e.altitudeAngle,
azimuthAngle: e.azimuthAngle,
touchType: e.touchType
}
},