Function mir_pointer_event_axis_stop¶
Defined in File pointer_event.h
Function Documentation¶
-
bool mir_pointer_event_axis_stop(MirPointerEvent const *event, MirPointerAxis axis)¶
Retrieve if this is a stop event for the given scroll axis.
When scroll events are generated with a source of finger they always end in an axis stop when the finger is raised. Other scroll events may in with an axis stop. Any axis other than vscroll and hscroll always returns false.
- Parameters:
event – [in] The pointer event
axis – [in] The axis to check
- Returns:
If this is an axis stop event for the given axis