keepInBounds Not Working in my App
Opened this issue · 2 comments
lsiehda commented
Your demo keepInBounds seems to work when set to true, but does not allow me to pan in my app. The viewportHeight and viewportWidth are 0 for me. Do you have any suggestions?
lsiehda commented
Can't you add a check to make sure the image is loaded before the link function?
mvindahl commented
Hi @lsiehda, thanks for the bug report and sorry that I forgot to respond. Would it work around the problem if you set the width and height of the tag to the dimensions of the image that you are fetching over the wire? Of course that would only be possible if you know the image in advance.