How to automate scroll bar

I found a way to automate scroll bar:
Here is my code block
Choose an annual increase percentage ${locator} AND ${ycord} AND ${xcord}
${x}= Get Horizontal Position ${locator}
${y}= Get Vertical Position ${locator}
${yaxis}= Evaluate ${y} - ${ycord}
${xaxis}= Evaluate ${x} - ${xcord}
Execute Javascript window.scrollTo(${xaxis}, ${yaxis})
Drag And Drop By Offset ${locator} ${yaxis} ${xaxis}:

FYI: You are going to need to do trial and error for the ${ycord} AND ${xcord} values, as there is no standard/straight line way to get the values.

Here is the element I am trying to drag, hope this helps.
2023-11-14_14h50_41