Browse Source

* Fixed a bug in handleCloseUpDisplay where p.mouseY was being used directly instead of the passed-in (and potentially smoothed) mouseY value.

refactor/sync-centralize
RUSHIL AMBARISH KADU 3 months ago
parent
commit
b63b3ae294
  1. 2
      steps/src/drawUtils.js

2
steps/src/drawUtils.js

@ -956,7 +956,7 @@ export function handleCloseUpDisplay(p, plotScales, mouseX, mouseY) {
boxX = mouseX + xOffset; boxX = mouseX + xOffset;
lineAnchorX = boxX; lineAnchorX = boxX;
} }
let boxY = p.mouseY - boxHeight / 2;
let boxY = mouseY - boxHeight / 2;
boxY = p.constrain(boxY, 0, p.height - boxHeight); boxY = p.constrain(boxY, 0, p.height - boxHeight);
const highlightColor = p.color(46, 204, 113); const highlightColor = p.color(46, 204, 113);

Loading…
Cancel
Save