Fixed issue #35 and issue #32: Swipe button can respond even if it is hidden