Skip to content

Commit 3c830c4

Browse files
committed
Fix TH2Poly bins highlight
1 parent 1eb042c commit 3c830c4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/JSRoot.hist.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6194,8 +6194,8 @@ JSROOT.define(['d3', 'painter', 'gpad'], (d3, jsrp) => {
61946194
// process tooltips from TH2Poly
61956195

61966196
let pmain = this.getFramePainter(), foundindx = -1, bin;
6197-
const realx = (pmain.grx === pmain.x) ? pmain.x.invert(pnt.x) : undefined,
6198-
realy = (pmain.gry === pmain.y) ? pmain.y.invert(pnt.y) : undefined;
6197+
const realx = pmain.revertAxis("x", pnt.x),
6198+
realy = pmain.revertAxis("y", pnt.y);
61996199

62006200
if ((realx!==undefined) && (realy!==undefined)) {
62016201
const len = histo.fBins.arr.length;

0 commit comments

Comments
 (0)