MCPcopy
hub / github.com/visgl/deck.gl / _onPanRotate

Function _onPanRotate

modules/core/src/controllers/controller.ts:493–505  ·  view source on GitHub ↗
(event: MjolnirGestureEvent)

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 3

getCenterMethod · 0.65
rotateMethod · 0.65
updateViewportMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…