Add argument for minimumSwipeLength in attachSwipe() function.