Closed CsHeng closed 8 years ago
@CsHeng Thank you for pointing out this issue and creating this PR.
This should be fixed.
I've reviewed your codes, and I found that this change loses the consistency of the meaning of scrollY
.
I think the return value of getCurrentScrollY()
and the value of the scrollY
parameter of the onScrollChanged()
callback should be the same, but this change only handles the getCurrentScrollY()
.
Could you change your codes to handle this?
yes, u r right= =
It did lose the consistency of the meaning of scrollY
. Will do it later.
I'll merge this and fix the remaining problem myself. Thanks anyway!
I found that when I add paddingTop to ObservableListView or other Observable View, then I get scrollY will get a negative offset of paddingTop value in pixels.
So I create this PR, only test it on ListView implement, but I believe that there'll be the same issue with ObservableGridView and ObservableRecyclerView.
Please review that~ Thanks.