Unsure if it is bug or feature, but it is possible to switch heroes during battle to fully recover health.
It's a bug, I'm about to release an update. In the update, I'll make it so the distance resets when you switch characters.