Closed hoangviet1993 closed 6 years ago
Merging #74 into master will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## master #74 +/- ##
=======================================
Coverage 95.94% 95.94%
=======================================
Files 18 18
Lines 345 345
=======================================
Hits 331 331
Misses 14 14
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update ce12154...c057e1b. Read the comment docs.
Ah, I don't think this is the fix I'm afraid. If you click the Partnerships page (step 2) then you start off in the middle of the page and not the top, as expected.
@seanlip Ah got it. So there is a catch after all!
How about now? https://oppia-foundation-test-server.appspot.com/
Still another catch :)
Try scrolling and navigating just by clicking buttons in the navbar. You'll find that, the second time you visit the homepage (all just through forward clicks) it will "remember" the scroll position of the previous time you visited it.
It shouldn't; the only time that that should happen is when you use the Back button (in parity with behaviour elsewhere on the Internet).
@seanlip can you please be specific with your reproduction steps?
I am having difficulty to replicate it with the following behavior:
(Can you clear browser temp files and stuff like that before hand)?
Ah, sorry! Yes of course.
(Landing in the middle should only happen when Back button is clicked, but not on forward navigation. Also I confirm that I've cleared my cache.)
In other words, navigating via navbar, or by typing in URL, should always land at top of page. It's only when clicking back that the scroll position should be remembered.
@seanlip
Thank you so much for clarifying these details. I never really paid attention to these minute details and took them for granted as a user.
I have tested out these scenarios: Scenario 1:
Scenario 2:
Scenario 3,4 (replicate the above scenarios using Url)
Can you PTAL again?
@seanlip I am not sure tbh. I think I can justify needing $window.pageXOffset
when the page is scroll-able horizontally. And I think if I try (really hard), I can get the page to be scroll-able sideway.
I don't really mind get rid of it tbh. What do you think should be the call here?
Eh, either's fine I think :) Let's just merge it! Thanks!
Fix #64 (I hope this is the fix, otherwise a prolonged PR is expected) I think the test server should have the behavior that you are looking for @seanlip
Please lmk if there is something I am overlooking.
Changes are live at: https://oppia-foundation-test-server.appspot.com/