Skip to content

Commit

Permalink
Merge pull request #3956 from salachi/TIMOB-11668-ScrollviewClick
Browse files Browse the repository at this point in the history
TIMOB-11668-add the listener to the layout view
  • Loading branch information
ayeung committed Mar 20, 2013
2 parents a9f7952 + d9ca30b commit 29a41bf
Showing 1 changed file with 14 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,20 @@ public TiScrollViewLayout getLayout()
return ((TiHorizontalScrollView) nativeView).layout;
}
}

@Override
protected void setOnClickListener(View view)
{
View targetView = view;
// Get the layout and attach the listeners to it
if (view instanceof TiVerticalScrollView) {
targetView = ((TiVerticalScrollView) nativeView).layout;
}
if (view instanceof TiHorizontalScrollView) {
targetView = ((TiHorizontalScrollView) nativeView).layout;
}
super.setOnClickListener(targetView);
}

public void setScrollingEnabled(Object value)
{
Expand Down

0 comments on commit 29a41bf

Please sign in to comment.