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
interactive + tooltip offset bug #114
Comments
@ajmerik121 https://codesandbox.io/s/bold-feistel-j0zxp?file=/src/index.js |
okay, my bad, I misread it as 0 offset, but even with > 0 offset, I get no flickering, so I am no longer sure what you mean by flickering. Also since you have used a rather large offset of 20, you would definitely need to add some reasonable delayHide if you want users to be able to move to the tooltip in order to persist it. Here's a recording with your Codesandbox And here's a recording with your Codesandbox with a 250ms Screen.Recording.2021-02-05.at.3.02.51.PM.mov |
I just play with the code and I think I found the root cause. I might be able to prepare PR and describe it all in there. |
@czabaj sure, feel free to do so |
Yes, got it! When the tooltip overlaps the trigger and when you move the cursor over the overlapping section, your cursor points to the tooltip and the trigger receive The quick workaround is
To make a robust solution, we must detect |
@czabaj what you are describing is quite different from what @ajmerik121 is talking about. What you just described happens when interactive is false (default) and offset is set such that the arrow overlaps the trigger. This was the reason we had put the default offset as [0, 7] in our shipped CSS, which is the first solution that you have described. (I assume you are not using our CSS for styling?) We had also considered solutions 2 and 3 before releasing but finally went with the offset method and left pointer-events to the end-user in case they want a lower offset or are not using our CSS. |
@ajmerik121 Screen.Recording.2021-02-05.at.6.20.58.PM.mov |
Since the OP updated the description to be empty, closing this issue as resolved. Feel free to reopen if it still persists. |
No description provided.
The text was updated successfully, but these errors were encountered: