Feature and motivation
With the move to w3c, the previous Touch Actions API was made obsolete.
For single finger interactions, a user can set the pointer input "type" to be a "finger" similar to how this example shows it being set as a "pen": https://www.selenium.dev/documentation/webdriver/actions_api/pen/#using-a-pen
And then do all the things that any pointer input can do: https://www.selenium.dev/documentation/webdriver/actions_api/mouse/
What the existing implementations do not make easy is multiple inputs (fingers) acting simultaneously.
We should consider creating an API or options for things like "pinch," "zoom," and "scroll".
Whatever this API is, it should match what an Appium user does or would expect to do in native application contexts.
Usage example
new Actions(driver)
.zoom(locus, startRadius, endRadius, pinchAngle, duration)
.perform();
Feature and motivation
With the move to w3c, the previous Touch Actions API was made obsolete.
For single finger interactions, a user can set the pointer input "type" to be a "finger" similar to how this example shows it being set as a "pen": https://www.selenium.dev/documentation/webdriver/actions_api/pen/#using-a-pen
And then do all the things that any pointer input can do: https://www.selenium.dev/documentation/webdriver/actions_api/mouse/
What the existing implementations do not make easy is multiple inputs (fingers) acting simultaneously.
We should consider creating an API or options for things like "pinch," "zoom," and "scroll".
Whatever this API is, it should match what an Appium user does or would expect to do in native application contexts.
Usage example