Hi all,
I have implemented pinch to zoom and it works great. I have also set the min and max scale for the group and I and able to keep the images from leaving the left side of the screen but I can not figure out how to keep the image on the right side of the screen.
Here is my code.
if group.x \< 0 and group.xScale == 1 then group.x = 0 end if group.y \< 0 and group.yScale == 1 then group.y = 0 end
I can keep it from going off the screen on the top and left but I can figure out the code to keep it from going off the bottom and right.
Can anyone help?