Appium Scroll failing with latest appium update

/new TouchAction(driver).press(point(width, startY)).waitAction(waitOptions(Duration.ofSeconds(1)))
.moveTo(point(width, endY)).release().perform();
/

TouchAction has been deprecated. You will need to investigate how to perform these actions in the latest appium with whatever language you use to write your tests.

how to scroll ?? idk

use this way:

https://monfared.medium.com/gestures-in-appium-part9-plugin-9f83b954a400

You should fix it in this way.
This is what I had before:

 driver.touchPerform([
        { action: 'press', options: { x: startX, y: startY } },
        { action: 'wait', options: { ms: 500 } },
        { action: 'moveTo', options: { x: endX, y: endY } },
        { action: 'release' },
      ]);

This is how you should do it now:

await driver.performActions([{
        type: 'pointer',
        id: 'finger1',
        actions: [
          {
            type: 'pointerMove', duration: 0, x: startX, y: startY,
          },
          { type: 'pointerDown', button: 0 },
          { type: 'pause', duration: 100 },
          {
            type: 'pointerMove', duration: 250, x: endX, y: endY,
          },
          { type: 'pointerUp', button: 0 },
          { type: 'pause', duration: 1000 },
        ],
      }]);