gesture_drag_distance


Description

This function is used to set the distance it takes for a Dragging Gesture event to be triggered by the movement of a touch or click. The distance is measured in inches and has a default value of 0.1.


Syntax:

gesture_drag_distance(distance);


Argument Description
distance The distance (in inches) to set for drag gesture event detection.


Returns:

N/A


Example:

if gesture_get_drag_distance() != 0.1
    {
    gesture_get_drag_distance(0.1);
    }

The above code checks to see if the drag distance for gestures is set to 0.1 inches and if it is not it sets it to that value.