Do you have any plans to make tooltips usable on touch devices?
If you are not planning on doing this, would you accept such PR?
How would you expect the Tooltip behavior to be on mobile?
On Apr 9, 2015 7:58 PM, "Kestutis" [email protected] wrote:
Do you have any plans to make tooltips usable on touch devices?
If you are not planning on doing this, would you accept such PR?—
Reply to this email directly or view it on GitHub
https://github.com/Dogfalo/materialize/issues/1141.
It would be nice to have an option (e.x. data-trigger) to define how the tooltip will be triggered: click | hover | focus | manual.
In this case click option would trigger tooltip on touch devices when user taps on the element.
What are your thoughts?
This is how it looks on mobile device https://vimeo.com/120788406 when the user taps on the element.
Found the bug in my own code, it does work on mobile just the way I expected.
Sorry for the fuss.
I also have the issue, that the tooptip dos not work on mobile. Looking at the code I wonder how a mouseenter event should be triggered by touching on a mobile device?
Wow apparently mouse events get called on mobile. However if you use Meteor's fastclick package they get skipped somehow. So I added the needsclick to my tooltip trigger and it is working fine now.
@PhilippSpo I think I'm having fastclick issues too. When I run the app normally in a browser, it works fine, but fullscreen modes on Android/Chrome and iOS/Safari both fail - probably because its falling back to fastclick there? .needsclick didn't seem to fix it for me...
It worked just adding .needsclick, however i am not able to close the tooltip :S how did you achieve this @PhilippSpo
Most helpful comment
It would be nice to have an option (e.x.
data-trigger) to define how the tooltip will be triggered: click | hover | focus | manual.In this case click option would trigger tooltip on touch devices when user taps on the element.
What are your thoughts?