Skip to content
New issue

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

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

Already on GitHub? # to your account

Fix #canScroll when image.width < view.width #90

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix #canScroll when image.width < view.width #90

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Jul 24, 2016

This fixes a bug in the #canScroll method where it always returns true (instead of false), when the width of the bitmap is smaller than the width of the ImageViewTouch.

It can be reproduced by creating a ViewPager containing a ImageViewTouch and loading an image that is smaller than the resulting width of the ImageViewTouch.

Here is an example (not mine): https://gist.github.com/atermenji/3781644

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

Successfully merging this pull request may close these issues.

0 participants