Skip to content

Commit

Permalink
Merge pull request #58 from kkhalilov/master
Browse files Browse the repository at this point in the history
Swipe start and swipe end events now is available on Android
  • Loading branch information
farfromrefug authored Sep 11, 2024
2 parents 0057665 + aaeaade commit b13cb91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ui-pager/index.android.ts
Original file line number Diff line number Diff line change
Expand Up @@ -713,12 +713,12 @@ function initPagerChangeCallback() {
object: owner
});
owner.lastEvent = 1;
} else if (owner.lastEvent === 1 && state === 1) {
else if ((owner.lastEvent === 2 || owner.lastEvent === 0) && state === 0) {
owner.notify({
eventName: Pager.swipeOverEvent,
object: owner
});
owner.lastEvent = 1;
owner.lastEvent = 0;
} else if (owner.lastEvent === 1 && state === 2) {
owner.notify({
eventName: Pager.swipeEndEvent,
Expand Down

0 comments on commit b13cb91

Please sign in to comment.