Set gesture distance,but it is not good