onFling
Fling gesture callback (quick swipe and release).
The SDK provides no built-in fling implementation. This method is gated by GestureConfig.flingEnabled (default: false) and returns immediately when disabled.
Clients wanting momentum-based scrolling should:
Set
gestureConfig = GestureConfig(flingEnabled = true)in SurfaceCallbackConfigSubclass MSDKSurfaceCallback and override this method with their own implementation
Parameters
velocityX
Horizontal velocity in pixels per second
velocityY
Vertical velocity in pixels per second