toggles for drag and swipe events