MapLibre Native C API
Public C ABI for the MapLibre Native wrapper.
Loading...
Searching...
No Matches
mln_pan_momentum Struct Reference

#include <map.h>

Data Fields

mln_pan_momentum_fields fields
mln_screen_point velocity
mln_momentum_decay decay

Detailed Description

How a gesture's pan keeps moving the map's content after release.

Field Documentation

◆ decay

mln_momentum_decay mln_pan_momentum::decay

◆ fields

mln_pan_momentum_fields mln_pan_momentum::fields

◆ velocity

mln_screen_point mln_pan_momentum::velocity

How fast the map's content moved on the screen at release, in logical pixels per second. The pan moves only when this is set.


The documentation for this struct was generated from the following file: