readium/r2-navigator-swift

Changing location on in view loaded in the background always will end up at the start

ehapmgs opened this issue · 3 comments

If you try to go the a location on view loaded in the background it will always end up at the start of the resource.

here I am trying to go to the last locater on the resource

location

The reason behind this that loadView(at index: Int, location: Locator) method will ignore the case were the view is loaded and won't create a new view with initialLocation of the parameter sent to it

check #95 as a suggested solution

Alternative fix that will prevent calling go method while swiping #97

@ehapmgs Thanks for your issue report, and sorry for leaving you hanging there!
This seems to have been fixed by this PR, since I can't reproduce the problem in develop. Can you confirm that it's fixed from your side with develop branches?

Please reopen the issue if it's still occurring from develop.