Conditionally remove ontouchstart event