You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I simply want to utilize the instance.moveTo(x, y) function to center a specific element within the container of the screen. I have read that the x and y values depend on the current zoom level. Is that true? That would make things a little more difficult. I do have the position of the element within the container. I am just unsure what the panzoom library does exactly that could potentially affect the calculation I am making to determine the position of the element.
Tl;dr: I have an element in the panzoom container. How do I center it by panning to that position?
The text was updated successfully, but these errors were encountered:
Thanks (AI), but that does not fix the issue. Now the image in my container shifts all the way to the left of my screen. I was expecting it to center the element in the center of the screen, but that is not the case.
Hello,
I simply want to utilize the
instance.moveTo(x, y)
function to center a specific element within the container of the screen. I have read that the x and y values depend on the current zoom level. Is that true? That would make things a little more difficult. I do have the position of the element within the container. I am just unsure what the panzoom library does exactly that could potentially affect the calculation I am making to determine the position of the element.Tl;dr: I have an element in the panzoom container. How do I center it by panning to that position?
The text was updated successfully, but these errors were encountered: