Etymology
Today it means: So as to wander; while wandering. Full definition →
From wandering + -ly.
Etymology from Wiktionary, CC BY-SA 4.0.