Matt McClure's 85th-minute goal was just reward for Wycombe's dominance, but in the dying seconds visiting keeper Jordan Archer was stopped from taking a goal-kick by a Gillingham fan who jumped on him.
Stewards dealt with the culprit, and with eight wins in 12, Ainsworth preferred to focus on his side's impressive display.
He said: "He will be dealt with by Gillingham and the authorities. I want to concentrate on the football really, what he did was wrong and he's given the rest of the Gillingham fans a bad name and they will be as annoyed as anyone.
"I don't think it hurt the keeper. Jordan's a tough lad.
"We could have had two or three goals if not more. To come to a place like Gillingham and we were up for it, ready for it.
"I was a little bit worried that we would be a bit rusty with no games for 16 days but those worries were soon put to bed when I saw the lads come out. The passion, the drive and the energy was awesome from the boys.
"The boys were outstanding, every single one, and I'm so glad Matt scored. He missed that one chance but that's his one a season. We had chances and (were) unfortunate not to be ahead earlier but we scored at a great time. I'm really proud."