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): tooltip flickering when hover the mouse on the border on the tooltip position #3075
Comments
Can't reproduce this on both versions (used chrome and firefox). |
Chrome version: Versión 62.0.3202.94 (Build official) (64 bits) |
Thanks, I reproduced it too. Strange but the flickering is only happening for |
If you zoom the page (125%) is possible reproduce when the tooltip is on top too. |
it's and |
Same issue here on Chrome latest |
Same here with the latest version of Chrome |
I found that the issue is happening when the tooltip becomes visible because it overlaps the element by a bit and since the z-index of the tooltip is normally higher than the element that fires the tooltip your element hides behind it meaning that you're no longer hovering it so it hides the tooltip and it creates a hide and show loop thus giving you the flickering effect. It has to do with the positioning that ngx-bootstrap gives to the tooltip, but you would have to move it left by 2 pixels to solve the issue, which wouldn't be the most convenient thing to do in most cases. This issue happens also to bootstrap itself, you can test it in the official bootstrap demo. You can quickly solve this issue by setting the z-index of the element that fires the tooltip to 1071 or higher (tooltip's default is 1070) |
I still have the flickering issue even after changing z-index to 1071 and above |
Add "pointer-events: none;" to the tooltip css, problem solved!
|
@rokdazone this one works! |
Thanks @rokdazone !! |
Adding |
@rokdazone Thanks! |
What solved it for me was setting |
@suparnavg Thanks! |
This solution works, but css of the tooltip element is broken (it was moved by few pixels to the right with my left tooltip). Much better is init all tooltips with container body in javascript. |
For me is: |
Be advised: in at least my version of AngularJS Material, you'll need to use since the rendered tooltip has 'style' attribute on it which will override simple usage recommended above. |
.popover { pointer-events: none; } |
? |
When you hover over the "Solution" section's tip, it disappears (because you're not longer hovering `.box-content`) and then reappears and flickers on and off... Thanks to @rokdazone for the [tip](valor-software/ngx-bootstrap#3075 (comment)). Tested/Validated on Chrome.
fixed here #4660, soon will be merged |
Stranger things! I resolved this problem in the project I'm working on with:
|
.tooltip { pointer-events: none; } solves my problem. |
I've tried all of the above solutions but nothing works for me. Are there any other suggestions? I use angular 5.0.0 and bootstrap 4.0.0 beta |
|
Setting the container to 'body' was the fix for me.
|
Hello, I had similar problem, for me "top tooltip" was jumping 1px up and down nonstop only in chrome browser. Code before: |
I was facing the same problem and found out that it was because of css transition on all elements |
This seems to be the root cause of my shiny hoverbox flickering too but I can't apply your suggestions on the R shiny code directly. Could someone direct me to a place where this is also explained for R shiny ggplot environment? |
It works well .... Thanks |
I have the same issue, but none of the solutions mentioned in this post helps. |
Check if there are some hover effects being applied on the target element. Remove if there are.. |
Removing hover effects from the target element does not solve the issue. |
This worked for me. |
i just removed placement:"left" , this worked for me |
Above fix is not working for me because I have a link "click here "placed inside tooltip ,I'll not be able to click on the link if I'm using --pointer-events: none... |
Thank you 👍 |
Bug description or feature request:
Tooltip flickering when hover the mouse on the border on the tooltip position.
Plunker/StackBlitz that reproduces the issue:
The Bug is reproducible on tooltip examples of: https://valor-software.com/ngx-bootstrap/#/tooltip
I'm working with Bootstap 3.3.7 but I only reproduce the bug on version 4
Versions of ngx-bootstrap, Angular, and Bootstrap:
ngx-bootstrap: 1.9.3
Angular: 4.2.5
Bootstrap: 3.3.7
Build system: Angular CLI, System.js, webpack, starter seed:
angular/cli : 1.2.0
The text was updated successfully, but these errors were encountered: