How to avoid Tooltip showing on left panel of gantt graphic

Hi guys!
I´ve a view with a gantt. I want to avoid tooltip when users put the mouse hover the tasks on the left panel. Only on the line task of the right panel.
Do you haw to do it?


Hello,
You need to change onMouseMove event in tooltip extension file tooltip.js to the next:

t.attachEvent("onMouseMove", function(e, i) { if (i.clientX > gantt.config.grid_width) { if (this.config.tooltip_timeout) { document.createEventObject && !document.createEvent && (i = document.createEventObject(i)); var n = this.config.tooltip_timeout; this._tooltip_id && !e && (isNaN(this.config.tooltip_hide_timeout) || (n = this.config.tooltip_hide_timeout)), clearTimeout(t._tooltip_ev_timer), t._tooltip_ev_timer = setTimeout(function() { t._init_tooltip(e, i) }, n) } else t._init_tooltip(e, i) } })

Please, see example:
docs.dhtmlx.com/gantt/snippet/87639d79

This is exactly that I need. But I´m using v3.3.0 Stardard. Have you this code you posted but 3.3.0 version?
This is my actual code in tooltip.js:

gantt.attachEvent(“onMouseMove”, function (t, e) {
if (this.config.tooltip_timeout) {
document.createEventObject && !document.createEvent && (e = document.createEventObject(e));
var n = this.config.tooltip_timeout;
this._tooltip_id && !t && (isNaN(this.config.tooltip_hide_timeout) || (n = this.config.tooltip_hide_timeout)), clearTimeout(gantt._tooltip_ev_timer), gantt._tooltip_ev_timer = setTimeout(function () {
gantt._init_tooltip(t, e)
}, n)
} else gantt._init_tooltip(t, e)
}),

Try change your code to the next:

gantt.attachEvent("onMouseMove", function (t, e) { if (e.clientX > gantt.config.grid_width) { if (this.config.tooltip_timeout) { document.createEventObject && !document.createEvent && (e = document.createEventObject(e)); var n = this.config.tooltip_timeout; this._tooltip_id && !t && (isNaN(this.config.tooltip_hide_timeout) || (n = this.config.tooltip_hide_timeout)), clearTimeout(gantt._tooltip_ev_timer), gantt._tooltip_ev_timer = setTimeout(function () { gantt._init_tooltip(t, e) }, n) } else gantt._init_tooltip(t, e) } }),

Perfect. It work!