此函数用于获取触摸或单击的移动触发拖动手势事件所需的距离。距离以英寸为单位,默认值为0.1。
gesture_get_drag_distance();
Real (inches)
if (gesture_get_drag_distance() != 0.1){ gesture_drag_distance(0.1);}
上面的代码检查手势的拖动距离是否设置为0.1英寸,如果不是,则将其设置为该值。