ままになっていた

had been left as it was

→ 侭
phrase Rare #42,318
had been left as it was Describes something that remained or was left in a particular state. In なすがままになっていた, it means “had been at the mercy of” something.
JA: 壊れた時計は、何年もそのままになっていた。
EN: The broken clock had been left that way for years.

その小さなボートはのなすがままになっていた

The small boat was at the mercy of the wind.

そのボートはのなすがままになっていた

The boat was at the mercy of the waves.