Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Support plotclick and plothover on mobile devices #464

dnschnur opened this Issue Sep 28, 2012 · 2 comments


None yet
1 participant

dnschnur commented Sep 28, 2012

Original author: Albert....@wsj.com (July 23, 2010 16:33:01)

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: http://code.google.com/p/flot/issues/detail?id=385


dnschnur commented Sep 28, 2012

From olau%iol...@gtempaccount.com on December 14, 2010 19:57:05
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.


dnschnur commented Sep 28, 2012

From chris.a....@gmail.com on January 10, 2011 22:20:25
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/Reference/SafariWebContent/HandlingEvents/HandlingEvents.html#//apple_ref/doc/uid/TP40006511-SW6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment