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

Commit

Permalink
* [Android] try to fix js exception: scroll event.xxx is undefined (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
lucky-chen authored and YorkShen committed Jan 10, 2019
1 parent 037c758 commit 945e93b
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ public void onScrolled(int x, int y){
this.y = y;
if(!hasStart){
if(component.getEvents().contains(Constants.Event.SCROLL_START)){
component.fireEvent(Constants.Event.SCROLL_START, getScrollEvent(x, y));
Map<String, Object> event = getScrollEvent(x,y);
if (null !=event && !event.isEmpty()){
component.fireEvent(Constants.Event.SCROLL_START,event);
}
}
hasStart = true;
}
Expand Down

0 comments on commit 945e93b

Please sign in to comment.