Skip to main content

Variable: GtkGestureSwipe

const GtkGestureSwipe: "GtkGestureSwipe"

Defined in: generated/jsx.ts:20050

Recognizes swipe gestures.

After a press/move/.../move/release sequence happens, the Gtk.GestureSwipe.:swipe signal will be emitted, providing the velocity and directionality of the sequence at the time it was lifted.

If the velocity is desired in intermediate points, Gtk.GestureSwipe.get_velocity can be called in a Gtk.Gesture.:update handler.

All velocities are reported in pixels/sec units.