pausing only to snatch her hat from its hook behind the door she scrambled up on to the staff and perched as best she could , sidesaddle of course , and with her skirts firmly gripped between her knees .