How to fix touchaction method for latest appium version

Hi, I have been using an old version of Appium and wrote the method shown at the bottom to allow me to scroll on Anroid.

I’ve just moved to the latest version of Appium and the method no longer works.

I think I have to replace TouchAction with TouchActions?
I think I have to replace tap with SingleTap?
I think I have to replace press with LongPress?

Is this right? What do I change moveTo?

public static void scrollAndroid(WebElement element1, WebElement element2, WebElement element3, AppiumDriver driver) {
TouchAction action = new TouchAction(driver);
action.tap(element1);
action.tap(element1).press(element2).moveTo(element3).release();
action.perform();
}