Backport mobile fixes to 1.8


Backport of
   - https://bugs.dojotoolkit.org/ticket/16730
   -  https://bugs.dojotoolkit.org/ticket/17388
   - https://bugs.dojotoolkit.org/ticket/17732

 to 1.8 branch.