We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15f1b73 commit 93b8be6Copy full SHA for 93b8be6
modules/hist2d/TGraphPainter.mjs
@@ -1296,10 +1296,10 @@ class TGraphPainter extends ObjectPainter {
1296
if ((method.fName == 'RemovePoint') || (method.fName == 'InsertPoint')) {
1297
if (!canp || canp._readonly) return true; // ignore function
1298
1299
- let hint = this.extractTooltip(pnt);
+ let pnt = isFunc(pmain?.getLastEventPos) ? pmain.getLastEventPos() : null,
1300
+ hint = this.extractTooltip(pnt);
1301
1302
if (method.fName == 'InsertPoint') {
- let pnt = isFunc(pmain.getLastEventPos) ? pmain.getLastEventPos() : null;
1303
if (pnt) {
1304
let funcs = pmain.getGrFuncs(this.options.second_x, this.options.second_y),
1305
userx = funcs.revertAxis('x', pnt.x) ?? 0,
0 commit comments