Problem: I want to know how I can get the distance (in pixels) between the swipe start and swipe end point or a possible workaround.
Saola Animate version: 2.7.1
OS: Wndows 10 1909
Notes: I’m trying to create an image comparision slider (without any external library). For that, I have 2 images (each in their seperate group). Both those groups have their overflow set to none. I have created a timeline named Slider. In this timeline, I have animated the width of the group on the top. With its x-transform-origin set to 0, the width of the group is changed from say 100px in the start to 0px in the end (thus, revealing the image underneath). Lastly, I have create a triangle to act as a drag handler. Even that’s animated in the Slider timeline according to the group. So, I was looking for a way to detect how long a user has swiped, which I can then possibly convert to percentage and set the timeline seek (of Slider timeline) to that percentage out of its total duration. Is this possible? I have attached a sample document to help understand what I mean.
Slider.saolapack (2.7 KB)