Changed swipe library to support threshold