mdt-charts 1.38.0 → 1.38.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -115,9 +115,7 @@ export class Tooltip {
|
|
|
115
115
|
tooltipArrow = TooltipComponentsManager.renderTooltipArrow(tooltipBlock.getEl());
|
|
116
116
|
if (tooltipSettings.position === "followCursor") {
|
|
117
117
|
elements.on("mousemove", function (e) {
|
|
118
|
-
const pointerCoordinate =
|
|
119
|
-
? e.detail.pointer
|
|
120
|
-
: pointer(e, block.getSvg().node());
|
|
118
|
+
const pointerCoordinate = e instanceof CustomEvent ? e.detail.pointer : pointer(e, block.getSvg().node());
|
|
121
119
|
const tooltipCoordinate = TooltipHelper.getTooltipCursorCoordinate(pointerCoordinate, block.getSvg().node().getBoundingClientRect(), tooltipBlock.getEl().node().getBoundingClientRect());
|
|
122
120
|
tooltipBlock.setCoordinate(tooltipCoordinate);
|
|
123
121
|
});
|