Fix bug with detection of target slide after touch gesture