class

CMiriDragVelocity

Module
Miri
Header
#include "Miri/Widgets/CMiriScrollAnimator.h"
Namespace
Miri

Public functions

ReturnsNameDescription
voidReset
voidAddSample
floatGetVelocity
floatGetReleaseVelocityThe velocity a release at nowSeconds should fling with: zero when the pointer has been still for a beat, because a drag that stopped before letting go must not take off.
doubleNowSeconds

Function details

Reset

C++
void Reset(float position, double timeSeconds)

AddSample

C++
void AddSample(float position, double timeSeconds)

GetVelocity

C++
float GetVelocity() const

GetReleaseVelocity

C++
float GetReleaseVelocity(double nowSeconds) const

The velocity a release at nowSeconds should fling with: zero when the pointer has been still for a beat, because a drag that stopped before letting go must not take off.

NowSeconds

C++
static double NowSeconds()
Generated from Miri/Widgets/CMiriScrollAnimator.h via miri.json · Dec 5, 2026Version 1.1.0