I added pitch event as adviced: Pinch Gesture is not working but this breaks touch scrooling. It seems, that it needs to be delegated programatically because my gesture overrides the default one. How can I delegate the pan event to scroll?
It was my fault most probably. Gesture can handle only one event type and I wanted to handle two of them. This is working version:
Gesture can handle only one event type
Handle multiple event is allowed, example :
this.gesture = new Gesture(this.container.nativeElement); this.gesture.listen(); this.gesture.on('doubletap', e => this.doubleTapEvent(e)); this.gesture.on('pinch', e => this.pinchEvent(e)); this.gesture.on('pinchstart', e => this.pinchStartEvent(e)); this.gesture.on('pinchend', e => this.pinchEndEvent(e));
How can I delegate the pan event to scroll?
I would have set my container smaller than the window size, to allow user scrolling on the window left side for example…cause I think you cannot “delegate the pan event to scroll”