Hi Gary, You have to keep in mind that the order of transformations is done in SVG from the last to the first. So you have first to write first: translation back from the origin to the original location next: scale last: translate the orginal location (that should not move) to the origin. By origin I mean x=0,y=0 . Good luck, Samy
--- In svg-developers@yahoogroups.com, Gary Higbee <[EMAIL PROTECTED]> wrote: > I am still working on my zoom issue. My code now will zoom in or out, unfortunately when I try to correct for the new scale with a translate it does not work the way I expect. I am trying to make it so whatever point on the SVG is centered in your viewport will stay centered when you zoom in or out. Right now it seems to jump just out of the view. Do I need to take the translate values and adjust for the scale factor some how? > > Thanks, > Gary > > > [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/1U_rlB/TM --------------------------------------------------------------------~-> ----- To unsubscribe send a message to: [EMAIL PROTECTED] -or- visit http://groups.yahoo.com/group/svg-developers and click "edit my membership" ---- Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/svg-developers/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/