check edges and update current page when swipe end is identified.