M
Martin
I have an application that generates a page with an embedded SVG image
in it. The image (the viewport) is intentionally larger than the
screen (the browser's window size). I would like to provide the
ability for the user to click on the image and drag it around so that
he can see the parts that are off-screen - much like he would use the
scroll bars to move it left/right and up/down.
Note that I am NOT talking about dragging a specific element around -
I want to be able to move the entire image without changing the image
in any way. Also, I'm NOT talking about drag-and-drop.
Can anyone tell me how this might be done? Or, perhaps point me to
some on-line examples?
Thanks.
in it. The image (the viewport) is intentionally larger than the
screen (the browser's window size). I would like to provide the
ability for the user to click on the image and drag it around so that
he can see the parts that are off-screen - much like he would use the
scroll bars to move it left/right and up/down.
Note that I am NOT talking about dragging a specific element around -
I want to be able to move the entire image without changing the image
in any way. Also, I'm NOT talking about drag-and-drop.
Can anyone tell me how this might be done? Or, perhaps point me to
some on-line examples?
Thanks.