OnMove
The OnMove type is a callback that fires whenever the viewport is moved, either by user interaction or programmatically. It receives the triggering event and the new viewport state.
type OnMove = (event: MouseEvent | TouchEvent | null, viewport: Viewport) => void;This type is used to define the onMove handler.
Parameters
event: MouseEvent | TouchEventviewport: Viewport
Returns
void