SeZuo / SwissMuseum-Parcours

Web app to navigate inside the Swiss Museum's collection
0 stars 0 forks source link

Foreign pages aren't working anymore #164

Open SeZuo opened 11 years ago

SeZuo commented 11 years ago

Foreign pages are pages that are requested by the view, while retaining the previous context. For instance, the user is browsing a catalogue, and clicks a link to some object referenced in the text. This page is outside of the catalogue and should be displayed differently, letting the user get back his read after he has finished with the extra info.

This issue could be solved by adding a page to the app and then use the animationhelper.goto(page). The foreign page should have a visual mark of it's nature, and a way to get back to the previous panel.

SeZuo commented 11 years ago

Simple solution: use a new carousel with a single page. The "parent" of this carousel is the current booklet's carousel. That way, if you swipe the new page, you'll get back to the parent carousel.

The carousel itself should take this into account. The carousel should anyway listen to the model (not done yet) in order to react to model changes (current page). If the carousel does not find the model's current page in it's pages, it should use this new carousel.