Last updated: Aug 13, 2017 14:33
By Daniel Tourgman
Touch actions used to scroll or swipe support pixel coordinates. Learn how to convert from relative to absolute coordinates.
The coordinates’ values in the device gestures operations, such as and Swipe, can be either pixel coordinates or percentage coordinates. Below you can find the formula for converting the pixels coordinates to percentage coordinates:
For example, for a Nexus 5 device with the 1080 x 1920 resolution, the following commands will perform the same operation:
Nice to know: