Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webtoon onNext not working properly #13

Closed
winterdl opened this issue Oct 11, 2021 · 1 comment
Closed

Webtoon onNext not working properly #13

winterdl opened this issue Oct 11, 2021 · 1 comment

Comments

@winterdl
Copy link

winterdl commented Oct 11, 2021

Android and iOS, if last page of a chapter have a height less than a half of screen height, when we tap next, it will not working properly, and the totals page and last page not the same.

Screen record of android emulator

next_page.mp4

This is another clip, if a page is too height, it will scroll only half of page height when I tap next, I have to drag over that page, the next page also tap next on first half of page.

output.mp4
output2.mp4
@winterdl winterdl changed the title Webtoon onNext not works properly Webtoon onNext not working properly Oct 11, 2021
@winterdl
Copy link
Author

void _positionUpdate() {
    if (!_listen) return;
    var list = listener.itemPositions.value;
    ItemPosition current;

    // if scroll down, get last visible item, if scroll up, get first visible item
    if (list != null && list.length > 0) {
      current = list.toList()[list.length - 1];
    }
    if (current != null) {
      _current = current;
      setPage(current.index);
    }
  }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant