Why has sensitivity of clicking on HTML image map area elements become less sensitive in iOS 8?
Hi - I had a 'bug' come in at work yesterday where links on image maps on our website were said not to be working. I investigated and found that on iOS 8 in safari, to register a 'click' when tapping on an HTML area element within an image map, you now need to hold your finger down longer to register the click. In fact - you need to hold it down longer than many of our users were doing so they were saying the image map just wasn't working.
This did seem odd so I created an isolated instance of an image map with onclick handlers and, sure enough, on iOS 7 and below, on safari, a very light tap would trigger a click event but - on iOS8 on safari, I need to hold my finger down much longer in order to register a click event.
The problem was raised by a number of people so I've had to put in a fix - using event delegation on a parent wrapper binding to the 'touchend' event for any 'area' element and then using the href attribute of the area element to redirect.. That seemed to fix it.
But - it seems odd that the sensitivity has changed (we have tested this on multiple iOS devices with different iOS versions and even upgraded older iOS versions on the same device to prove this). And - this happens on all image maps - not just our own image maps with their specific click handlers. I created several different image maps - just with standard href attributes on the area elements and the sensitivity has dropped off on iOS8.
Does anyone know why this has happened and if there is a better fix for this issue than I put in place (as I have to now not only handle the touchend event but also check to see if the user was intending to scroll the window, rather than click on an element).
Any thoughts on this would be most appreciated.
Thanks
iPad, iOS 8, any iOS8 device