From 26536f8849335f17f3958d7eb544ad811732937e Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Sat, 1 Feb 2020 05:20:22 -0800 Subject: [PATCH] Fix bug in opacity handling (#7047) --- src/plugins/plugin.tooltip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/plugin.tooltip.js b/src/plugins/plugin.tooltip.js index f5c136e9be9..a1ef6f181cf 100644 --- a/src/plugins/plugin.tooltip.js +++ b/src/plugins/plugin.tooltip.js @@ -925,7 +925,7 @@ class Tooltip extends Element { }; // IE11/Edge does not like very small opacities, so snap to 0 - opacity = Math.abs(opacity < 1e-3) ? 0 : opacity; + opacity = Math.abs(opacity) < 1e-3 ? 0 : opacity; // Truthy/falsey value for empty tooltip var hasTooltipContent = me.title.length || me.beforeBody.length || me.body.length || me.afterBody.length || me.footer.length;