Skip to content

Commit

Permalink
feat(android): add single/doubletap to scrollview
Browse files Browse the repository at this point in the history
Fixes TIMOB-13286
  • Loading branch information
m1ga authored and sgtcoolguy committed Dec 10, 2019
1 parent 0aa9b36 commit 0326b7e
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,22 @@ public void onLongPress(MotionEvent e)
fireEvent(TiC.EVENT_LONGPRESS, dictFromEvent(e));
}
}
@Override
public boolean onSingleTapConfirmed(MotionEvent e)
{
if (proxy.hierarchyHasListener(TiC.EVENT_SINGLE_TAP)) {
fireEvent(TiC.EVENT_SINGLE_TAP, dictFromEvent(e));
}
return true;
}
@Override
public boolean onDoubleTap(MotionEvent e)
{
if (proxy.hierarchyHasListener(TiC.EVENT_DOUBLE_TAP)) {
fireEvent(TiC.EVENT_DOUBLE_TAP, dictFromEvent(e));
}
return true;
}
});
setOnTouchListener(new OnTouchListener() {
@Override
Expand Down

0 comments on commit 0326b7e

Please sign in to comment.