I'm working on canvas and was handling gesture events with hammerjs. But there I was facing an issue which I already asked here and other places but nobody responded. So now I'm working with ionic gestures but there also I can't find rotation angle property. Can anybody help me with that?
Here's the code:
ngAfterViewInit() {
const gesture: Gesture = this.gestureCtrl.create({
el: this.transCanvasElement,
gestureName: 'rotate',
onStart: ev => this.onStartHandler(ev)
}, true);
gesture.enable();
}
onStartHandler(ev) {
console.log('ionic gesture ev angle: ', ev.rotation); // ev.rotation is undefined
}