OnMove
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;| Name | Type | Default |
|---|---|---|
event | MouseEvent | TouchEvent | |
viewport | Viewport |
Last updated on