attempt at making own swipe event