Improved swipe handler for android devices