new TouchAction(driver).press(startX, startY).waitAction(1000).moveTo(0, startY-endY).release().perform();
Should work. Appium documentation says that moveTo coordinates are relative to the current position.
Dragging from 100,100 to 200,200 can be achieved by:
.press(100,100) // Start at 100,100
.moveTo(100,100) // Increase X & Y by 100 each, ending up at 200,200
I can’t get swipe to swipe up.