Skip to content

Commit 1c7fc22

Browse files
committed
Fix in bin highlight configuration
1 parent 819b456 commit 1c7fc22

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

scripts/JSRoot3DPainter.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@
355355

356356
if (pnt2) this.mouse_zoom_mesh.point2 = pnt2;
357357

358-
if (pnt2 && this.painter.enable_hightlight)
358+
if (pnt2 && this.painter.enable_highlight)
359359
if (this.mouse_zoom_mesh.object.ShowSelection(this.mouse_zoom_mesh.point, pnt2))
360360
this.painter.Render3D(0);
361361

@@ -646,7 +646,7 @@
646646
this.BinHighlight3D = JSROOT.Painter.BinHighlight3D;
647647

648648
this.first_render_tm = 0;
649-
this.enable_hightlight = false;
649+
this.enable_highlight = false;
650650
this.tooltip_allowed = (JSROOT.gStyle.Tooltip > 0);
651651

652652
if (JSROOT.BatchMode) return;
@@ -1435,7 +1435,7 @@
14351435
JSROOT.Painter.BinHighlight3D = function(tip, selfmesh) {
14361436

14371437
var changed = false, tooltip_mesh = null, changed_self = true,
1438-
want_remove = !tip || (tip.x1===undefined) || !this.enable_hightlight;
1438+
want_remove = !tip || (tip.x1===undefined) || !this.enable_highlight;
14391439

14401440
if (this.tooltip_selfmesh) {
14411441
changed_self = (this.tooltip_selfmesh !== selfmesh)
@@ -2682,7 +2682,7 @@
26822682

26832683
if (this.first_render_tm === 0) {
26842684
this.first_render_tm = tm2.getTime() - tm1.getTime();
2685-
this.enable_hightlight = (this.first_render_tm < 1200) && this.tooltip_allowed;
2685+
this.enable_highlight = (this.first_render_tm < 1200) && this.tooltip_allowed;
26862686
console.log('First render tm = ' + this.first_render_tm);
26872687
}
26882688

0 commit comments

Comments
 (0)