binding swipe event at document level