it is quite obvious…
Rectangle rectangle = ((WebElement) el).getRect();
Point point = new Point(rectangle.x + (rectangle.width / 2), rectangle.y + (rectangle.height / 2));
PointerInput finger = new PointerInput(PointerInput.Kind.TOUCH, "finger");
Sequence seq = new Sequence(finger, 1);
seq.addAction(finger.createPointerMove(Duration.ofMillis(0), PointerInput.Origin.viewport(), point.x, point.y));
seq.addAction(finger.createPointerDown(PointerInput.MouseButton.LEFT.asArg()));
seq.addAction(finger.createPointerMove(Duration.ofMillis(50), PointerInput.Origin.viewport(), point.x, point.y));
seq.addAction(finger.createPointerUp(PointerInput.MouseButton.LEFT.asArg()));
driver.perform(Arrays.asList(seq));