Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MaterialTooltip default delay shouldn't be 0 #728

Closed
gkresic opened this issue Oct 27, 2017 · 5 comments
Closed

MaterialTooltip default delay shouldn't be 0 #728

gkresic opened this issue Oct 27, 2017 · 5 comments
Assignees

Comments

@gkresic
Copy link
Contributor

gkresic commented Oct 27, 2017

Delay of 0 (AKA "no delay at all") makes tooltips popup immediately after mouse enters a widget (even if mouse was just, very quickly, passing above widget). That makes very bad visual experience and may collide with other operations, for example, if link that opens a MaterialDropDown has tooltip, tooltip will cover MaterialDropDown every time, because it is impossible to click a link without triggering tooltip.

Even changing initial value in MaterialTooltip.java from 0 to, say, 1000 would be beneficial, but best solution would be if that default delay could be configurable.

@kevzlou7979
Copy link
Contributor

kevzlou7979 commented Oct 27, 2017

Setting delay in MaterialTooltip is availble, you can set it by

<m:MaterialButton tooltipDelayMs="1000" tooltipHTML="&lt;i&gt;Italic text&lt;/i&gt;" text="Tooltip with HTML" />

@kevzlou7979 kevzlou7979 self-assigned this Oct 27, 2017
@gkresic
Copy link
Contributor Author

gkresic commented Oct 27, 2017

I forgot to mention: I know that manually setting delay is possible, but, at least as I see it, default delay of 0ms is... well... suboptimal default :)

@kevzlou7979
Copy link
Contributor

Ok yeah this could be an enhancement we can set to default of 350ms as MD specification has for the UX

@kevzlou7979
Copy link
Contributor

@kevzlou7979
Copy link
Contributor

Fixed via 1c6c060

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

No branches or pull requests

2 participants