LambergaR / VerticalViewPager

Vertical implementation of Android ViewPager
MIT License
276 stars 134 forks source link

Small bug on computeScroll() #10

Open vhpgomes opened 11 years ago

vhpgomes commented 11 years ago

There's a small bug in the computeScroll() method, line 1576:

if (!pageScrolled(x)) {

should be:

if (!pageScrolled(y)) {

since this is a vertical pager ;)

this bug results in some wrong values being passed to the 'onPageScrolled' method of listeners in a few cases.