Package: gtk

Function gtk:gesture-swipe-velocity

Lambda List

gtk:gesture-swipe-velocity (gesture)

Syntax

(gtk:gesture-swipe-velocity gesture) => xvel, yvel

Arguments

gesture -- a gtk:gesture-swipe object
xvel -- a double float for the velocity in the x axis, in pixels/sec
yvel -- a double float for the velocity in the y axis, in pixels/sec

Details

If the gesture is recognized, this function returns the recorded velocity, as per the last event(s) processed, otherwise nil is returned.
 

See also

2025-07-26