From 13a0c42227f1361554f3630e1cdc72b9ac290fc5 Mon Sep 17 00:00:00 2001 From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Fri, 31 Jan 2020 18:52:41 -0800 Subject: [PATCH] Fix bug in opacity handling --- 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;