check edges when swipe ends