Thanks for this.
I can confirm that
env MOZ_USE_XINPUT2=1 firefox
does work, (although I note that it is not great with two external monitors attached. The work-around is to use one finger in the middle of the touchscreen rather than near either side edge.) For some reason, setting the permanent command isn't working for me.