It's been a couple years since we used our coach, but as I recall our refer's electric side won't run off the inverter; refer electric functions only when plugged in or on generator - others here may chastise my memory :-/. If so, gas is the only option on the road, and some burner configurations are susceptible to the flame blowing out, and/or ignition failure, from vent door draft. The fact that it works okay when stopped is a good indication of the cause, but as Bill says, we need more information from you - does the unit work okay on gas while stopped?
If the flame is possibly being extinguished by vent drafts, then check to make sure the burner's gas/air mixing sleeve is properly adjusted, so the flame is cleanly blue without too much orange, and any vent draft is less likely to disturb the mix point. You should also check that the metal cover over the burner itself is securely in place, so it works as intended and isn't letting gusts of air extinguish the flame. Flame loss due to vent drafting on the road is not something one reads about on today's coaches, though it used to be a common complaint a decade or two ago. I don't remember what the prescribed solutions were back then, and our old motor home never had the drafting problem; then again, I did check the sleeve adjustment/flame and burner cover annually anyway, so maybe that's why.
That said, if the sleeve and burner cover are properly adjusted, I'd assume one could devise a metal shield to divert stongly moving air away from the burner and mix flue, without depriving the mix of needed air for burning. But I hope that isn't necessary here.
As an addendum, there is much controversy over whether the refer should be on while driving, and the topic has been covered in FMC magazine I believe. There are safety valves that shut off the fuel on impact, and some gas valves are wired to shut off for awhile when the engine is turned off (for gas station safety). Great unless you're in the station longer than the prescribed "off" time, and the burner fires up in the midst of gas fumes. But many states have areas like tunnels, etc., where any flame is illegal and unsafe, just like gas stations. Some say the best option is to turn the refer off before driving, since theoretically today's well-insulated refers can keep food cool and safe for many hours as long as the door(s) aren't opened too often. Exchanging that slight inconvenience for maximum safety on the road and in gas stations is to them the best option. Personally, in a hazardous situation or accident, I wouldn't want to be held liable, legally or emotionally, for any consequences of the refer being on when it didn't absolutely have to be.
-Joel