josejaner / flot

Automatically exported from code.google.com/p/flot
MIT License
0 stars 1 forks source link

Support plotclick and plothover on mobile devices #385

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
On the iPad and other mobile webkit devices, these events don't seem to fire 
when touching the charts that are being drawn. Example here. 
http://graphicsweb.wsj.com/TOUR2010/info-TOUR2010.html

The crosshair gets positioned correctly, but the plot events don't work.

Original issue reported on code.google.com by Albert....@wsj.com on 23 Jul 2010 at 4:33

GoogleCodeExporter commented 8 years ago
That's weird. If somebody can find out what's causing this, it would be cool. 
The crosshair is using mousemove just like the plothover events. I can see why 
multitouch gestures could interfere with the chart interactivity, though, 
somebody needs to think this through.

Original comment by olau%iol...@gtempaccount.com on 14 Dec 2010 at 7:57

GoogleCodeExporter commented 8 years ago
According to the apple docs, it may be because the element is not "clickable" 
to iOS. In fact, when I make the grid hoverable and clickable, and then tap a 
bar in a bar chart, it does get darker/highlighted, though my plothover event 
doesn't seem to fire. If it's just hoverable and not clickable, nothing 
happens. I had to make the grid hoverable and clickalbe and bind to plothover 
for everything else and to plotclick for iPhone/iPad/iPod.

See 
http://developer.apple.com/library/safari/documentation/AppleApplications/Refere
nce/SafariWebContent/HandlingEvents/HandlingEvents.html#//apple_ref/doc/uid/TP40
006511-SW6

Original comment by chris.a....@gmail.com on 10 Jan 2011 at 10:20

GoogleCodeExporter commented 8 years ago

Original comment by dnsch...@gmail.com on 7 May 2012 at 11:56

GoogleCodeExporter commented 8 years ago
Issue 570 has been merged into this issue.

Original comment by dnsch...@gmail.com on 7 May 2012 at 11:57

GoogleCodeExporter commented 8 years ago
Hi,

 Any more updates on this issue ? I am using Flot 0.8.2 currently and have both plothover and plotclick events in my graph and that does not work in ipad. Any help on this issue ?

Original comment by sandy4n...@gmail.com on 29 Apr 2014 at 10:40