(event: MjolnirGestureEvent)
| 641 | |
| 642 | // Default handler for the `pinchstart` event. |
| 643 | protected _onPinchStart(event: MjolnirGestureEvent): boolean { |
| 644 | const pos = this.getCenter(event); |
| 645 | if (!this.isPointInBounds(pos, event)) { |
| 646 | return false; |
| 647 | } |
| 648 | |
| 649 | const newControllerState = this.controllerState.zoomStart({pos}).rotateStart({pos}); |
| 650 | // hack - hammer's `rotation` field doesn't seem to produce the correct angle |
| 651 | pinchEventWorkaround._startPinchRotation = event.rotation; |
| 652 | pinchEventWorkaround._lastPinchEvent = event; |
| 653 | this.updateViewport(newControllerState, NO_TRANSITION_PROPS, {isDragging: true}); |
| 654 | return true; |
| 655 | } |
| 656 | |
| 657 | // Default handler for the `pinchmove` and `pinchend` events. |
| 658 | protected _onPinch(event: MjolnirGestureEvent): boolean { |
nothing calls this directly
no test coverage detected
searching dependent graphs…