victorsoares96 / epubjs-react-native

ePub.js Reader for React Native
MIT License
147 stars 49 forks source link

GoToPrevious() issue. #256

Closed sw-tt-ankitborad closed 4 months ago

sw-tt-ankitborad commented 4 months ago

Summary

When we go second page(start with top) and scroll down, then go to the previous page, so it's display bottom content of first page. We have atteacting below code and funcation.

const {goPrevious, goNext} = useReader(); // we are using this method for next or previous page.

<Reader height={viewHeight - 45} src={epubURL} fileSystem={useFileSystem} flow="scrolled-doc" />

So please check and provide solution ASAP.

What platform(s) does this occur on?

Android, iOS

Environment

const {goPrevious, goNext} = useReader(); // we are using this method for next or previous page.

<Reader height={viewHeight - 45} src={epubURL} fileSystem={useFileSystem} flow="scrolled-doc" />

Minimal reproducible example

When we go second page(start with top) and scroll down, then go to the previous page, so it's display bottom content of first page.

sw-tt-hitendrachavda commented 4 months ago

i am facing the same issue.

victorsoares96 commented 4 months ago

Thank you for reporting this problem, I resolved it in the mentioned pull request, please update the library to the latest version (1.4.2)

sw-tt-ankitborad commented 4 months ago

It's finally functioning as anticipated. Appreciate the assistance!