swipe distance as a fraction of distance between the view and the edge of the screen