I am using a touch event to determine a left or right swipe on the image. The issue that when I swipe, it fires many times and automatically goes to the end when swiping ri