1

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.

Jan Klimo
  • 4,643
  • 2
  • 36
  • 42

1 Answers1

1

There is a common issue with private browsing : if you use local storage it will raise an exception & halt javascript execution. This is probably why your click events are not fired.

GuCier
  • 6,919
  • 1
  • 29
  • 36