Issue https://snippet.dhtmlx.com/b1602b3d9?_ga=2.91499218.936189948.1573438316-1617006022.1573438316

https://snippet.dhtmlx.com/b1602b3d9?_ga=2.91499218.936189948.1573438316-1617006022.1573438316

I followed the example and the problem occurred when scolling the position of the shadow of the task will be different from the position of the mouse cursor.

Hi @linhtv97,
This issue occurred because this implementation doesn’t calculate the scroll position. In order to fix it, you should change your y-position calculation, like in this code fragment:

var y_pos;
var sPos;
var posY;
gantt.attachEvent("onMouseMove", function (id,e){
  sPos = gantt.getScrollState();
  posY = sPos.y;
  y_pos = e.clientY + posY;
});  

Here is a snippet with example:
http://snippet.dhtmlx.com/12e4bb516
API getScrollState:
https://docs.dhtmlx.com/gantt/api__gantt_getscrollstate.html

Thank you for doing it