Fixes the failure-to-focus bug on mobile devices.