I am trying to scale a layer with shapes according to middle point of two touches. When i set offset and x,y coordinates of the layer staticly, I can use pinch smoothly but when set offset and x,y coordinates according to touches it behaves strange. I am not sure there is problem but i trying this over 4 days and i couldn't find any solutions.
I am trying to scale a layer with shapes according to middle point of two touches. When i set offset and x,y coordinates of the layer staticly, I can use pinch smoothly but when set offset and x,y coordinates according to touches it behaves strange. I am not sure there is problem but i trying this over 4 days and i couldn't find any solutions.
Here is my code for scaling.