-
Notifications
You must be signed in to change notification settings - Fork 757
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scroll position not retained in Firefox, IE #630
Scroll position not retained in Firefox, IE #630
Comments
Unfortunately, I can't test it in IE11 right now. I mean change
to
|
Can confirm this also happens on Firefox 38.0 on Ubuntu 14.04. |
It's in browser-sync-client repo |
I wasn't aware that browser-sync is split up. |
@Siilwyn, did you run |
@faergeek oh I also missed that it was being build with gulp, thanks for bearing with me. That indeed fixed it. Should I open a pull request changing the code to detect Firefox and pass false to the reload function? |
I think there's no reason to detect Firefox or IE, equally as no reason to pass |
@faergeek - without passing |
I mean you can disable caching on server
|
Another workaround is to disable UA detection when save/restore scroll position from cookies. |
I've just some testing on Chrome, Firefox, iOS, IE9 etc and all send to still perform the request Because of this I'm happy to remove the |
I must be doing something wrong... If I remove the "true" in the files as specified by @faergeek, the browser (Firefox Developer edition 40.0a2) still pops back to the top after a sync reload. The disable cache setting is turned on in devtools. |
How are you running Browsersync with the modified script? |
Hmm, yeah I see the same problem in IE11 |
Wow, just learned about |
@shakyShane: I forced an update to the latest version of browserSync, made the changes in the files, ran |
@shakyShane, |
Can we not just namespace writes to it? There's a tradeoff for any approach though.
|
I don't think we can use namespaces there, it's just a string. |
I think we can prepend our data to window.name on |
Any examples of frameworks/apps that actually use Either way, my thoughts are that we default to it (works great in my tests) but allow users to use the cookie drop instead via an option. |
MDN lists some usages https://developer.mozilla.org/en-US/docs/Web/API/Window/name |
Please all try I have tested in all browsers back to IE8 and it's working great now. I'm aware that using |
Yes, supersweet. This works for me! Tested in Firefox, Firefox Developer Edition, IE 11. |
@digitalCitizen Thanks for reporting |
Really nice! It even seems to work better now, the browser window doesn't flash at the refresh like it did before. @shakyShane thank you! |
@Siilwyn - Yeah I made a couple of other improvements whilst there :p Also, if you are pleased with the support we give, you could extend your thanks by voting for us :) |
A quick note about a conflict I found: Protractor uses an Angular feature called Deferred Bootstrap that uses
If Browsersync overwrites that Switching to the cookie drop resolves this issue, but took me a long time to troubleshoot! |
Hi. I am using [email protected] and Google Chrome (v43.0.2357.130) on Ubuntu. The scroll position, say after using for 5 minutes, starts to jump to another position when reload. When I restart the browser, the problem seems to go away again. Is there a way to check what's wrong? Or something I can run on the browser console, so that I don't have to close all my tabs and restart the browser? |
Is this problem back? I'm testing with several browsers on several platforms, using BroswerSync 2.14.0. When I scroll in Chrome, I see other Chrome, Safari, and Edge windows scroll together, but not Firefox or IE 11. If I scroll in Firefox, I see Firefox and IE 11 windows scroll together. |
This issue was not about scroll syncing in different browsers, but about the scroll position popping back to top after a code change/auto refresh. |
Having the same issue, on every refresh the page starts back at the top. OSX El Capitan |
Have the same problem. |
Previous (closed) issue with recent update here: #80
The issue is that after a change in the code, the page refresh causes the scroll location to be set to the top of the page. This happens in Firefox 37.0.2, and in Firefox Developer Edition 40.0a2 (2015-05-19) and IE 11.
In Chrome everything works nicely.
The text was updated successfully, but these errors were encountered: