getScrollState

returns the scroll position

object getScrollState();
objectthe scroll position object as { x:scrollLeft, y:scrollTop }

Example

const sPos = gantt.getScrollState(); // {x:58,y:180}
const posX = sPos.x;
const posY = sPos.y;

See also
Back to top