made cancelPageSwipe configurable