Reset the map focus on 'mouseout' and 'touchend'

fixes #974