onFling

open override fun onFling(velocityX: Float, velocityY: Float)

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:

  1. Set gestureConfig = GestureConfig(flingEnabled = true) in SurfaceCallbackConfig

  2. Subclass MSDKSurfaceCallback and override this method with their own implementation

Parameters

velocityX

Horizontal velocity in pixels per second

velocityY

Vertical velocity in pixels per second