Fix overlay and selection in mobile WebKit.