Skip to content

Commit 7be930d

Browse files
committed
Fix - interactive TGraph point move on time scale
1 parent 893912d commit 7be930d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/JSRootPainter.more.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1768,8 +1768,8 @@
17681768
var pos = d3.mouse(this.svg_frame().node()),
17691769
main = this.frame_painter();
17701770

1771-
this.interactive_delta_x = main ? main.x(this.interactive_bin.x) - pos[0] : 0;
1772-
this.interactive_delta_y = main ? main.y(this.interactive_bin.y) - pos[1] : 0;
1771+
this.interactive_delta_x = main ? main.grx(this.interactive_bin.x) - pos[0] : 0;
1772+
this.interactive_delta_y = main ? main.gry(this.interactive_bin.y) - pos[1] : 0;
17731773
}
17741774

17751775
TGraphPainter.prototype.FillContextMenu = function(menu) {

0 commit comments

Comments
 (0)