fix focus problems on mobile devices