(event: MjolnirGestureEvent)
| 445 | // Default handler for panning to move. |
| 446 | // Called by `_onPan` when panning without function key pressed. |
| 447 | protected _onPanMove(event: MjolnirGestureEvent): boolean { |
| 448 | if (!this.dragPan) { |
| 449 | return false; |
| 450 | } |
| 451 | const pos = this.getCenter(event); |
| 452 | const newControllerState = this.controllerState.pan({pos}); |
| 453 | this.updateViewport(newControllerState, NO_TRANSITION_PROPS, { |
| 454 | isDragging: true, |
| 455 | isPanning: true |
| 456 | }); |
| 457 | return true; |
| 458 | } |
| 459 | |
| 460 | protected _onPanMoveEnd(event: MjolnirGestureEvent): boolean { |
| 461 | const {inertia} = this; |
nothing calls this directly
no test coverage detected
searching dependent graphs…