Fix crash when touching and sliding

Change-Id: I509296508baedeba27a1ad1749f8ac0a77a98d4c