Merge "Refactor edge of screen detection code." into ub-launcher3-master