Taps not correctly registering on Visualforce pages in the Salesforce1 iOS app on iOS 8
Last updated 2016-07-28 ·Reference W-2390341 ·Reported By 92 users
No Fix
Summary
Customers using the Salesforce1 app on devices running iOS versions 8.0 through 8.0.2 may experience issues interacting with content on Visualforce pages (e.g. tapping on a button or input field). Touch events on the page may intermittently work, causing taps to not be correctly registered. This does NOT affect users on iOS 7.
This issue has been resolved in iOS 8.1, so we encourage users to upgrade affected devices as soon as possible.
Repro
- Open the Salesforce1 iOS app on a device running iOS 8.0-8.0.2.
- Navigate to a Visualforce page.
- Tap on a checkbox, input field or other input area. The tap may not register (nothing happens) or the page may jump to the wrong spot.
Workaround
This issue has been resolved by Apple's iOS 8.1 release. We encourage users to upgrade their devices as soon as possible.
As a workaround for users on devices running iOS 8.0-8.0.2, see below:
The following two workarounds are not guaranteed to work, not supported by Salesforce, and you should use them at your own risk.
1) Add the following JavaScript to your page:
<script>
(function(){try{var a=navigator.userAgent;
if((a.indexOf('Salesforce')!=-1)&&(a.indexOf('iPhone')!=-1||a.indexOf('iPad')!=-1)&&(a.indexOf('OS/8')!=-1||a.indexOf('OS 8')!=-1)&&(a.indexOf('Safari')==-1)){
var s=document.createElement('style');
s.innerHTML="html,html body{overflow: auto;-webkit-overflow-scrolling:touch;}body{position:absolute;left:0;right:0;top:0;bottom:0;}";
document.getElementsByTagName('head')[0].appendChild(s);}}catch(e){}})();
</script>
2) Add the following JavaScript to your page:
<script>
var ua=navigator.userAgent;
if((ua.indexOf('Salesforce')!=-1)&&(ua.indexOf('iPhone')!=-1||ua.indexOf('iPad')!=-1)&&(ua.indexOf('OS/8')!=-1||ua.indexOf('OS 8')!=-1)&&(ua.indexOf('Safari')==-1)){
function IOS_SCROLL_BOOTSTRAP() {
var children = Array.prototype.slice.call(document.body.children),
placeholder = document.createElement('section'),
fragment = document.createDocumentFragment(),
styles,
width,
height;
children.forEach(function(c){fragment.appendChild(c);});
placeholder.appendChild(fragment);
styles = [
'width:100%;',
'height:', (window.screen.height - 42), 'px;',
'position: absolute; overflow: auto; -webkit-overflow-scrolling: touch'
].join('');
placeholder.style.cssText = styles;
document.body.appendChild(placeholder);
}
window.addEventListener('load', function (e) {
IOS_SCROLL_BOOTSTRAP();
});
}
</script>
Apple has released iOS 8.1 which has resolved this issue. We encourage users to upgrade affected devices as soon as possible.
Reported By (92)




































Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.