Hi Alex,
Thanks for the patience.
Upon further validation, Scheduler component follows step
dragging functionality but in tree view component follows default auto
scrolling functionality. To control scrolling speed, we can disable the
auto scroll functionality in tree view and handle step dragging in application
end.
To achieve this, we need to bind the "created"
event and set the "enableAutoScroll" property of the TreeView
to false. Additionally, we need to bind the "nodeDragging"
event and call the "updateScrollPosition" function. Inside the
"updateScrollPosition" function, we have added a setInterval
function that triggers the "ScrollBoundary" function. In the
"ScrollBoundary" function, we identify the mouse pointer
position and then trigger the "autoScroll" function. In the
"autoScroll" function, we declare an “scrollBy” integer
value and check the mouse pointer position. If the mouse pointer is at the top
edge, bottom edge, left edge, or right edge, we add the declared integer value
to the position, acting as a distance integer.
Please note that you can adjust the “scrollBy” value
based on your requirement.
We have attached sample for your further reference.
Sample : https://stackblitz.com/edit/angular-pyn7ca?file=src%2Fapp.component.ts
Check out the shared details and get back to us if you need
any further assistance.
Regards,
Suresh.