Previous/next page arrow buttons are hidden, but associated commands are enabled (invokable by keyboard shortcuts and access keys) => problematic with non-linear spine items #188
Description
To reproduce:
(1) navigate to a non-linear spine item (via the TOC or an content-embedded hyperlink) => the left/right arrow buttons are correctly hidden.
(2) use the arrow keys to switch page => the non-linear XHTML document should be "trapped" as if it were represented in a modal dialog, but the page switches unexpectedly.
Suggested solutions:
(1) disable the actual page turn command, not just visually hide the buttons. Consequently though, the user would need to be able to navigate back to the previous document CFI location (i.e. which was displayed when the hyperlink to the non-linear document was activated). iBooks implements a proper modal dialog, with a "close" cross icon to discard the fullscreen popup overlay. In Readium however, another type of UI affordance needs to be introduced in order to achieve a similar effect. I'm not sure how, but accessibility is paramount, as non-linear documents are often used for ancillary content descriptions. Thoughts? (this would need to be implemented in v1, otherwise non-linear spine items would be like "trapping" blackholes!)
(2) enable both page arrow buttons when navigating to a non-linear document. This way, we revert back to the original behaviour and we decide to tackle the problem in v1+, see:
readium/readium-shared-js#26
I have a preference for (1), but I am not sure whether this development task is achievable within the v1 timeframe. @rkwright ?