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

Function _onPanMove

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

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 3

getCenterMethod · 0.65
panMethod · 0.65
updateViewportMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…