swipe event class