added up/down support for swipe and flick