From b63b3ae29459571e00be96d39bf9ab424c246b80 Mon Sep 17 00:00:00 2001 From: rakadu1 Date: Mon, 23 Feb 2026 14:30:00 +0530 Subject: [PATCH] * Fixed a bug in handleCloseUpDisplay where p.mouseY was being used directly instead of the passed-in (and potentially smoothed) mouseY value. --- steps/src/drawUtils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/steps/src/drawUtils.js b/steps/src/drawUtils.js index 8d79d14..f2fffea 100644 --- a/steps/src/drawUtils.js +++ b/steps/src/drawUtils.js @@ -956,7 +956,7 @@ export function handleCloseUpDisplay(p, plotScales, mouseX, mouseY) { boxX = mouseX + xOffset; lineAnchorX = boxX; } - let boxY = p.mouseY - boxHeight / 2; + let boxY = mouseY - boxHeight / 2; boxY = p.constrain(boxY, 0, p.height - boxHeight); const highlightColor = p.color(46, 204, 113);