for swipe events

from jQuery mobile