Giter Site home page Giter Site logo

Comments (6)

omnisnash avatar omnisnash commented on July 21, 2024

Hi, thanks for your feedback !

Concerning the scrolls, the issue is global to the application. I will try to use the solution from angular/angular#10929 (comment)

The tabs now... One possible solution is to use the route system : for example, /schedule/friday to keep a trace of the last selected tab in the browser history. But if you play to much with tabs, you will have to press 'back' serveral times before reaching another app section :/

Any opinions ?

from devoxxfr-2018-pwa.

xballoy avatar xballoy commented on July 21, 2024

I agree with you, if everytime we change tab we add something in the browser history we will have a strange behaviour.

However, why not pushing the current schedule route in the history only when the user navigate to the detail?

from devoxxfr-2018-pwa.

omnisnash avatar omnisnash commented on July 21, 2024

In fact, pushing the current route in the history is handled by Angular itself, and I don't think it's possible to change the behavior.

I will test this :

  • Creating a service to store navigation states (like schedule tab index)
  • Adding a subscription to the Angular Location service in the Schedule component to track if the back button was pressed
  • Retrieved the tab index from the navigation state service

from devoxxfr-2018-pwa.

omnisnash avatar omnisnash commented on July 21, 2024

These problems are now partially solved:

The tab index is saved when navigating back/next in bookmark/schedule.

Concerning the scroll restoration, it works... Only on mobile view (when navigation menu is hidden). I don't know why, the scroll position isn't restored on desktop view. Maybe something relative to media-query ? (cc @leodonny ).

You can test this behavior on the bugfix/#7-navigation_lost branch

Should we consider embedded these corrections into the next release, even it's not working on desktop view ?

from devoxxfr-2018-pwa.

xballoy avatar xballoy commented on July 21, 2024

Maybe we can split the issue in two:

  • the navigation issue: ✅
  • the scroll issue

If the navigation issue is solved we can ship it IMO

from devoxxfr-2018-pwa.

omnisnash avatar omnisnash commented on July 21, 2024

I agree, see #16 .

from devoxxfr-2018-pwa.

Related Issues (10)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.