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 have been working on panning on the page since I noticed that pan-pinch-zoom library works on the current render, whereas when we set the scale to a new scale, there is a re-render at a higher or lower resolution. This means that panning the original page is ideal as setting the scale would mean greatest clarity.
However, I have tried to use the canvas API translate but the original image does not move. Rectangles I draw move, but not the original page. How do I move/translate the original page?
Is there something special about the original page? Do I need to enable the annotations layer? I have thought about using React-Konva but do not know if that would be the right path.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have been working on panning on the page since I noticed that pan-pinch-zoom library works on the current render, whereas when we set the scale to a new scale, there is a re-render at a higher or lower resolution. This means that panning the original page is ideal as setting the scale would mean greatest clarity.
However, I have tried to use the canvas API translate but the original image does not move. Rectangles I draw move, but not the original page. How do I move/translate the original page?
Is there something special about the original page? Do I need to enable the annotations layer? I have thought about using React-Konva but do not know if that would be the right path.
Thanks for the help!
Beta Was this translation helpful? Give feedback.
All reactions