Skip to content
This repository has been archived by the owner on Jun 3, 2021. It is now read-only.

[Android] bugfix of the scrollstart and scrollend event mismatching #2638

Merged
merged 1 commit into from
Jul 10, 2019

Conversation

zshshr
Copy link
Contributor

@zshshr zshshr commented Jul 2, 2019

[Android] bugfix of the scrollstart and scrollend event mismatching

@weex-bot
Copy link

weex-bot commented Jul 2, 2019

Messages
📖 android build verification finished.

Generated by 🚫 dangerJS

@@ -64,14 +67,16 @@ public void onScrolled(int x, int y){
|| component.getEvents().contains(Constants.Event.SCROLL_END))){
this.x = x;
this.y = y;
if(!hasStart){
if(!hasStart && canStart){
Copy link
Contributor

@YorkShen YorkShen Jul 2, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This if block from line 75 to 79 should be deleted as code in line 95 fired the event.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code inline 95 is for the case the list has reached the top or bottom that can not callback in onscroll

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, you can safely delete code from line 95 to line 98, which are never invoked in any case.

Copy link
Contributor

@YorkShen YorkShen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@YorkShen YorkShen merged commit c928c5c into apache:master Jul 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants