Fix phantom scroll effect. If the view is closed the touch event should be ignored.