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

fix(tooltip): Show tooltip on first tap for touch devices #1185

Merged
merged 1 commit into from Oct 29, 2020

Conversation

aschey
Copy link
Contributor

@aschey aschey commented Oct 25, 2020

This closes #1184 - tooltips not being shown the first time a data point is tapped on a touch device.

The issue seemed to stem from how the code was setting the transform values. On the first event, hasDimension was false so the transform value wasn't being set. This change sets the transform value the first time the event is fired so it displays correctly. I also got rid of the opacity property since I didn't see a scenario where it should be set to 0 after this change, but let me know if I missed anything and I can add that back.

I did go through every chart type in the storybook and all of the tooltips seemed to render and hide themselves appropriately.

@aschey aschey changed the title Show tooltip on first tap for touch devices. Closes #1184 fix(tooltip): Show tooltip on first tap for touch devices. Closes #1184 Oct 25, 2020
@wyze wyze changed the title fix(tooltip): Show tooltip on first tap for touch devices. Closes #1184 fix(tooltip): Show tooltip on first tap for touch devices Oct 29, 2020
@wyze wyze merged commit f712cfa into plouc:master Oct 29, 2020
@wyze
Copy link
Contributor

wyze commented Oct 29, 2020

Awesome, thank you!

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