(event: MjolnirGestureEvent)
| 491 | // Default handler for panning to rotate. |
| 492 | // Called by `_onPan` when panning with function key pressed. |
| 493 | protected _onPanRotate(event: MjolnirGestureEvent): boolean { |
| 494 | if (!this.dragRotate) { |
| 495 | return false; |
| 496 | } |
| 497 | |
| 498 | const pos = this.getCenter(event); |
| 499 | const newControllerState = this.controllerState.rotate({pos}); |
| 500 | this.updateViewport(newControllerState, NO_TRANSITION_PROPS, { |
| 501 | isDragging: true, |
| 502 | isRotating: true |
| 503 | }); |
| 504 | return true; |
| 505 | } |
| 506 | |
| 507 | protected _onPanRotateEnd(event): boolean { |
| 508 | const {inertia} = this; |
nothing calls this directly
no test coverage detected
searching dependent graphs…