Handel distances for different pixel densities

Part of fix for android swipe gestures