Skip to content

Conversation

@mickael-menu
Copy link
Member

Added

Navigator

  • The new NavigatorDelegate.navigator(_:didJumpTo:) API is called every time the navigator jumps to an explicit location, which might break the linear reading progression.
    • For example, it is called when clicking on internal links or programmatically calling Navigator.go(to:), but not when turning pages.
    • You can use this callback to implement a navigation history by differentiating between continuous and discontinuous moves.

Note: This is a quickfix for the shortcomings of the current Navigator API which can't be used to build a navigation history. In the future navigator I think we should emit more information about a navigation event, such as the source (link clicked, go() call, page turned, skip forward, etc.).

Twin PR: readium/kotlin-toolkit#60

@mickael-menu mickael-menu temporarily deployed to LCP January 3, 2022 10:43 Inactive
@mickael-menu mickael-menu merged commit 4f6ba09 into develop Jan 18, 2022
@mickael-menu mickael-menu deleted the feature/didJumpToLocator branch January 18, 2022 13:55
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

Successfully merging this pull request may close these issues.

2 participants