Fix tolerance problems for swipe.