Comments (6)
Figure this out, just needed to save the paginationInfo.locator.json
String returned from paginationCallback
on the EpubScreen widget.
from iridium.
Thanks, I'll hopefully have some time to check this out later in the week. I'll create a PR or something if I manage to get it working.
from iridium.
I don't close for now, can you confirm it's OK once it works in your app?
from iridium.
@jmgeffroy It works when using that string in the location
field of the EpubScreen
widget.
Not sure why but sometimes it restores the previous page, even though the correct progress
double/float is being stored.
Have tested this quite a few times. Not a major issue for me right now but would be nice to figure out what's causing that.
from iridium.
Thank you for the feedback. So maybe for now I'll leave this topic open, and close it once I'll have found why you observe this small discrepancy. For now I'm completely involved in a huge development and will be more available in a few weeks to improve this kind of issues. Hopefully... 😄
from iridium.
Just an idea about this. If you look at the JS tricks that we are using, we place small divs at the top of each page, this is what allows us to detect when we reach the last page and the swipe should be handled by the PageView instead of the WebView. You can see the code here:
iridium/components/navigator/assets/_scripts/src/index-reflowable.js
Lines 129 to 135 in fcc2e2e
These divs are given ids such as readium_page_1
, readium_page_2
etc. So you could probably modify the code to store this information in the pagination info, too, and use it when restoring the position, by making the div corresponding to the requested page visible.
It's just an idea, I'm really not currently in the details of this code, and I don't remember if it's already the way we have implemented it.
from iridium.
Related Issues (20)
- Provide an option to prevent starting a HTTP server when opening a book
- how to read .lcpl ebook file
- Feature request: flutter-web support.
- Epub viewer bug: screen orientation error
- Gesture feature: popup hook for clicked element
- 【solved】pop-up layer bug on iOS HOT 1
- 【solved】obtain the paragraph id HOT 2
- Can't delete ebooks HOT 2
- note and bookmark not work on Android 6 because paginationInfo and currentSpineItemContext is null
- 【solved】flip many pages once a time HOT 1
- Demo app fails to build with error: Member not found: 'STORE'. HOT 3
- ERR_UNSAFE_PORT when opening book HOT 3
- Issue with back button in ReaderAppBar HOT 3
- How to disable scroll while selecting text? HOT 2
- ReaderToolbar buttons are skipping chapters instead of pages
- [IOS] Reading book not working HOT 1
- How can I get a text on the screen?
- How to console log to flutter debug console. HOT 1
- Project is not running (build error)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iridium.