Having built two types of zooming into the player I've had to develop a third for the player.
Obviously, if you want to add a teeny-weeny field to your project (one that the viewers will have zoom in the player to find) you'll need to zoom your image in the builder to be able to get the field right.
Easy just scale with a slider as per player?
Yes and no.
As clicking on the image will be used to add an anchor you won't be able to drag the image to pan it to see bits currently outside the viewport.
To get around this you move your wet canvas by touching the frame only.
To achieve this i've wrapped the image in the equivalent of a scroll pane.
So you pan the image with scrollbars.
Easy?
Not really.
You run into the same scaling from top-left, content moving to the bottom right problem i described in a previous post only now nesting won't solve it.
I got around this by programmatically adjust the scroll positions as the image zooms to keep the viewport centered.
Its a bit juddery but it works!
No comments:
Post a Comment