Unable to Scroll Horizontally

I am new to this,

Snap

Black shirt is my element, and I need to Swipe right, its co ordinates are [232 699] [1064,762] I tried with this code it was able to select the element, but was not swiping right.

    TouchAction touchAction = new TouchAction(driver);

    touchAction.longPress(PointOption.point(startx, starty))
               .waitAction(WaitOptions.waitOptions(ofSeconds(1)))
               .moveTo(PointOption.point(endx, endy))
               .release()
               .perform();

My Versions are as below:

io.appium java-client 7.3.0

Appium Version: v1.15.0

Once the Swipping is done, An alert pops up as Yes are No.

I am new to this, its been 2 months I started working this

It seems button. Why do you want to swipe?