Support browsers with both mouse and touch support in the back end (see #6520)