Comments (6)
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.
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.
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.
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.
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.
I agree, see #16 .
from devoxxfr-2018-pwa.
Related Issues (10)
- Add Material Icons font to service worker cache
- Twitter link broken on Android HOT 1
- Scroll position is lost when navigating back/next
- Navigating back is not possible on iOS devices
- Talk title display issue in Firefox
- Mixed-Content sur la page Speaker HOT 2
- Images in talk pages HOT 3
- Add the day to the talk detail
- Use Schedule component in Bookmark component instead of duplicating code
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devoxxfr-2018-pwa.