nativescript-angular icon indicating copy to clipboard operation
nativescript-angular copied to clipboard

How to get coordinates of starting point for pan gesture

Open jsparks19 opened this issue 10 years ago • 2 comments

Pan gesture exposes the delta X and delta Y, but I need to know the actual coordinates where the user started the pan. How do I do this? Do I need to use a combination of touch gesture and pan? Thanks

jsparks19 avatar May 14 '16 18:05 jsparks19

Yes - you can use the touch gesture. One other option is to use the native APIs to get the coordinates. Here is how to get the native event-args form the event-args of the pan gesture:

vakrilov avatar May 16 '16 11:05 vakrilov

The touch gesture is working for me. Thanks

jsparks19 avatar May 17 '16 00:05 jsparks19