on Scroll
open fun onScroll(mapboxCarMapSurface: MapboxCarMapSurface, distanceX: Float, distanceY: Float): Boolean
Content copied to clipboard
Allows you to implement or observe the map scroll gesture handler. The surface is onAttached before this can be triggered.
Return
true when the fling scroll was handled, false will trigger the default handler
See also
SurfaceCallback.onScroll
for instructions to enable.
Parameters
distanceX
the distance in pixels along the X axis
distanceY
the distance in pixels along the Y axis
mapboxCarMapSurface
loaded and ready car map surface