fix bug that swipe gesture doesn't work properly at touch device