google / google-visualization-issues

288 stars 35 forks source link

Bug: Geochart - AddListener 'select' not working on iOS when html tooltip is true #1597

Open orwant opened 9 years ago

orwant commented 9 years ago

In Geocharts, when the using html tooltips, the 'select' event listener won't get triggered
on iOS devices. 

tooltip: {isHtml: false} = Select Listener will work. > http://jsfiddle.net/cmoreira/LFrdP/
tooltip: {isHtml: true} = Select Listener will NOT work in iOS > http://jsfiddle.net/cmoreira/NBMs5/

What component is this issue related to (PieChart, LineChart, DataTable,
Query, etc)?
GEOCHART

Are you using the test environment (version 1.1)?
Tried with 1 and 1.1, doesn't work in both versions

What operating system and browser are you using?
iOS

*********************************************************
For developers viewing this issue: please click the 'star' icon to be
notified of future changes, and to let us know how many of you are
interested in seeing it resolved.
*********************************************************

Original issue reported on code.google.com by cmoreira.wp on 2014-05-21 00:33:09

orwant commented 9 years ago
After a quick investigation, I have determined that the reason this is happening is
because the wrong element gets the click event. I can't imagine why this would happen,
since our codepath as it relates to events within the GeoChart itself does not change
when you switch to an HTML tooltip. We may be able to circumvent the issue by using
touch events instead of click, hover, etc., but this seems more like a Safari bug than
anything else. However, before reporting the bug to them, we would need a distilled
example, which I'm not confident we can generate, as I'm not entirely sure what is
causing the event to fall through.

I will investigate both of these possibilities eventually, but due to the amount of
unknowns in this issue, I do not have an ETA for you.

Original issue reported on code.google.com by grabks@google.com on 2014-05-22 18:24:28

orwant commented 9 years ago
Thank you for looking into this! 
I tested in other browsers in iOS, it doesn't seem to work on Chrome and Dolphin also.
In case the info helps.

Original issue reported on code.google.com by cmoreira.wp on 2014-05-22 19:46:14

orwant commented 9 years ago
Hi, thanks for checking. 

Looks like it's related to iOS. I checked also on Android and works fine. 

Original issue reported on code.google.com by adnan.akbas on 2014-05-22 19:51:33

orwant commented 9 years ago
Any news about this?

Original issue reported on code.google.com by adnan.akbas on 2014-07-21 14:15:48

orwant commented 9 years ago
Verified that this is also a problem for a 'regionClick' event as well on iOS 7, if
the tooltip is set to HTML. 

Original issue reported on code.google.com by fireflystats on 2014-09-26 04:51:07

orwant commented 9 years ago
Any update on this? 

Original issue reported on code.google.com by cmoreira.wp on 2014-12-16 12:51:11

orwant commented 9 years ago
Hi everyone,

It's still unclear to us what exactly is causing this issue, but whatever it is, it
appears to be a Safari bug. The reason it's happening in Chrome and Dolphin is because
those browser effectively use Safari WebViews, and those will work in the same ways
and have the same bugs as Safari.

Original issue reported on code.google.com by grabks@google.com on 2014-12-22 22:06:27

orwant commented 9 years ago
hello,
do you have some update here please?
Thanks.
Roman

Original issue reported on code.google.com by roman.renert on 2015-03-26 21:05:46

carmoreira commented 8 years ago

Hi Seems this issue is still present after one year and several updates on Safari. Is there any workaround we can implement to have the HTML tooltips with the select event working on iOS devices?

mengsel commented 5 years ago

Hi guys 4 years down the road from initial report but we're still getting complaints that charts (tooltips) are misbehaving on Safari/Chrome on iOS. Any news on a fix or workaround?