Mobile (cordova) and hover events

223 views
Skip to first unread message

Matt McElligott

unread,
Jan 13, 2015, 6:10:17 PM1/13/15
to meteo...@googlegroups.com
Hey there,
I have a meteor app that utilizes hover-over tooltips using the c3js graph library (http://c3js.org/samples/chart_bar.html). They work well and allow the user to hover over a data point and get more information. On mobile browsers on iOS (safari, chrome) taps on the screen are registered as hover events, and the tooltips appear when the user clicks a data point as expected.

The problem is that when I build for iOS from meteor (cordova), the hover events are not registered and the tool tips are not displayed. My touch events are interpreted as a selection tool, and tries to use the copy/paste functionality. 

Is there any way to listen to touch events and fire hover events, like is done automatically in mobile browsers? 
Thanks,
Matt


Paul Dowman

unread,
Jan 13, 2015, 6:58:41 PM1/13/15
to meteo...@googlegroups.com
Just a guess, but this might be related to Fastclick being added by Meteor for Cordova. It's probably breaking Safari's hover emulation. Note that Android browsers don't do the hover emulation thing anyway. See this article for more info. I suppose you could remove Fastclick, but personally I would recommend avoiding hover for anything essential.

Paul

--
You received this message because you are subscribed to the Google Groups "meteor-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to meteor-talk...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/meteor-talk/073e161e-2383-45dc-a636-bfbafd92682c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Paul Dowman
Twitter ◦ Facebook ◦ LinkedIn ◦ Google+
Reply all
Reply to author
Forward
0 new messages