I'm trying to zoom in/out towards an object. This is how it should work, when I touch the object, It should zoom in towards the object and when I touch the screen (other than the object) it should zoom out.
I tried scaling the layer but this is how it works.
Here are the events
Not sure where it went wrong.
Can anyone help?
Thanks in advance.