The autoScroll property (string) controls automatic scrolling when the mouse reaches the edges of the Gantt viewport.
DayPilot.Gantt.autoScroll
"Disabled" disables AutoScroll.
"Always" starts AutoScroll when the mouse reaches the viewport edge.
"Drag" starts AutoScroll when the mouse reaches the viewport edge during drag and drop operations such as task moving and task resizing.
"Drag"
The "Drag" mode keeps automatic scrolling limited to drag and drop operations, while "Always" reacts to pointer movement at the viewport edge even outside task moving or resizing.
const gantt = new DayPilot.Gantt("dp", {
autoScroll: "Always",
// ...
});
gantt.init();
<daypilot-gantt [config]="config"></daypilot-gantt>
config: DayPilot.GanttConfig = {
autoScroll: "Always",
// ...
};
<DayPilotGantt
autoScroll="Always"
{/* ... */}
/>
<DayPilotGantt autoScroll="Always" <!-- ... --> />