Fix bug where getting thumbnail element via data attribute was blocking touch swipe from detecting touch.