pub fn flick(
travel: Point<Pixels>,
velocity: Velocity,
theme: &Theme,
) -> Option<Flick>Expand description
Whether a gesture that travelled travel and let go at velocity was a
flick, and which way it went.
A flick is a claim about intent, so it takes both numbers. Speed alone
would call a twitch a flick; distance alone would call a slow deliberate
drag one, and those are the two gestures a dismissal has to tell apart.
The threshold is motion.flickVelocityPxPerSec.
The direction comes from the speed and the travel has to agree with it: a gesture that went out and was coming back when it was released was not flicked out.