I am hosting this sample here to demonstrate the solution to this forum thread:
This is a really good example, but unfortunately it is relying entirely on the position of the Ccircle ellipse inside the canvas. I am trying to do this exact type of pan/zoom, except that my zoom point needs to always be the center of a viewport, and I cannot repeat the behavior that this example shows. How would you approach this example if you didn't have Ccircle?
Also, I forgot to point out that the size of the viewport is not constant (i.e. it stretches to fit a certain area).
If you would like to receive an email when updates are made to this post, please register here
Subscribe to this post's comments using RSS