Merge "Refactoring to use more precise statements when calculating gesture distance and others" into ub-launcher3-master