NativeScript PinchEnd event


#1

Is there any PinchEnd event in gestures? I took a look at docs about gestures, but there is nothing about End events like PinchEnd. Any idea?


#2

I haven’t tried it, but here’s how you’d wire one: https://docs.nativescript.org/cookbook/ui/gestures#pinch

And by the looks of the TypeScript definition there should be an args.state property as well, which is an enum. I think value 3 is ‘ended’. See https://github.com/NativeScript/NativeScript/blob/master/tns-core-modules/ui/gestures/gestures.d.ts


#3

Thank you. I think this is the solution. But not mentioned in the docs. Any way, going to test it…


#4

@Eddy How can I achieve pinchMove event?


#5

I use pan for pinch moving. But the result is not very smooth as well as instagram zoom :frowning: