Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

keepInBounds Not Working in my App #57

Open
lsiehda opened this issue Nov 3, 2016 · 2 comments
Open

keepInBounds Not Working in my App #57

lsiehda opened this issue Nov 3, 2016 · 2 comments

Comments

@lsiehda
Copy link

lsiehda commented Nov 3, 2016

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
Copy link
Author

lsiehda commented Nov 9, 2016

Can't you add a check to make sure the image is loaded before the link function?

@mvindahl
Copy link
Owner

mvindahl commented Nov 9, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants