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
Tooltip leaves shadows when hovering over points on Safari #18927
Comments
Internal note: |
I do not get this kind of behavior when I disable the "shadow" property via:
Just my own experience, though. I would prefer to not have to rely on this workaround; I like the shadows! |
Internal note Unfortunately we see the same issue in v10, styled mode: https://jsfiddle.net/ohrnpw0d/1/ . This issue clearly indicates it is not a bug in the Highcharts logic per se, but rather a rendering issue with SVG in Safari. It can be tricky to work around those, but we can try and see if we can make the browser redraw more of the chart. Interestingly, the issue doesn't appear when the tooltip is not split. Maybe the animation has something to do with it. Split tooltips are not animated by default. |
Workaround 1Drop in this snippet to force a redraw of the whole group when moving the tooltips: // Drop-in fix for https://github.com/highcharts/highcharts/issues/18927
Highcharts.wrap(Highcharts.Tooltip.prototype, 'renderSplit', function(proceed) {
proceed.apply(this, Array.prototype.slice.call(arguments, 1));
this.label.attr({
opacity: this.label.opacity === 1 ? 0.999 : 1
});
}); Workaround 2The problems seem to be gone when setting
|
Reported to WebKit: https://bugs.webkit.org/show_bug.cgi?id=256411 |
Expected behaviour
Tooltip with the split property shouldn't leave shadows when hovering over points.
Actual behaviour
Tooltip with the split property leaves shadows when hovering over points. The more defined points, the clearer it is to see the issue.
Live demo with steps to reproduce
https://jsfiddle.net/BlackLabel/mqe7ko0L/
Product version
Highcharts v11.0.0
Last working version: Highcharts v10.3.3
Affected browser(s)
Safari v16.4
The text was updated successfully, but these errors were encountered: