anvaka / panzoom

Universal pan and zoom library (DOM, SVG, Custom)

Home Page:https://anvaka.github.io/panzoom/demo/attach-via-script.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

initialX, initialY, and initialZoom do nothing

christopherwalkerml opened this issue · comments

as it says, using the initialX, initialY, and initialZoom parameters does nothing to the start position of the svg on the screen.

using Firefox on Windows 10

it seems that zoomAbs doesn't work when "bounds: true", even if the initialX and initialY positions are within the bounds.
something about the initialX and initialY values being calculated incorrectly in relation to bounds.

InitialZoom does seem to work for me, but I can't get initialX and initialY working, regardless of bounds:true/false.