My code is listening to the touchstart
event on the .header
div:
$('.header').bind('touchstart', function() {
console.log('Rock and roll.');
)};
This event fires across all devices and browsers, but there seems to be a problem with Safari on iPhone 6 in Private Browsing mode. This works on the same device if Private Browsing is switched off.
I tried the common tips:
<div class="header" onClick="">
and adding
cursor: pointer;
but the problem persists. Do you guys know of a workaround?
UPDATE: this is related to Private browsing in general and is not specific to any device type. Same thing happens when browsing in Incognito mode on Chrome on desktop.