The best practice is to move minimally, and stop thinking about where your hands are now and instead focus on where your hands need to be in the immediate future (usually 1-2 measures down the road, depends on your piece). For example, if you are playing a piece in E major and are resting on the root chord (E, G#, B), you do necessarily need to place your third finger on G#. The piece may not call for it in the next measures, and by then, you may have already moved to another position, and thus, in the interest of moving minimally and your own fingering comfort, you could just simply let it rest on G during that time.
Moreover, it takes additional time to be constantly readjusting, which will slow you down noticeably when playing faster pieces and may hamper your ability to prepare for other future hand positions if you're (unconsciously) always trying to return to a stock "position."
Last note- I'm not sure how long you've been playing the piano, but if you're a beginner or even at an intermediate level or so, I wouldn't worry about finger placement too much. As you play more, you'll get more of a sense of how to space out your fingers and where they should rest, very naturally. In the end, it doesn't matter at all where you rest your fingers and there's no right or wrong way, as long as the notes are correct and it doesn't hamper the ease of your playing.