Fix. swiped when closing panning