Responsively-app: Persist scroll position across page reloads

Created on 18 Jul 2020  路  11Comments  路  Source: responsively-org/responsively-app

Everytime you save a file the screen refreshes and scrolls to the top.

  • e.g. Building a footer component on responsively becomes pretty annoying as the page scrolls back to the top everytime I save.
enhancement

Most helpful comment

Exactly. If you picture someone building a footer on a homepage you'll understand what I went through yesterday. Everytime I made a change I had to go to the Responsively.app tab and scroll back down to the footer. I think it's super important, honestly.
Congratulations for the app. It's a game changer.

All 11 comments

@marcoscannabrava You are suggesting the scroll position should be restored to the same after the reload?

Exactly. If you picture someone building a footer on a homepage you'll understand what I went through yesterday. Everytime I made a change I had to go to the Responsively.app tab and scroll back down to the footer. I think it's super important, honestly.
Congratulations for the app. It's a game changer.

Ditto on this one!

Upvote!

Cool

hi @manojVivek maybe I can give this a try

That is great, thanks @jjavierdguezas. 馃檶

This might help: https://www.npmjs.com/package/electron-retain-webview-scroll

@jjavierdguezas @manojVivek came across below option in browserSync. looks like they support this out of the box.
https://www.browsersync.io/docs/options#option-scrollRestoreTechnique

@esprush I think, this only applies when browser-sync is doing the reloading.

just checked on the latest version and this works for me. @marcoscannabrava can you confirm?
cc: @manojVivek @jjavierdguezas @naher94 @rafaykhawar09 @ewazlak

think chrome 83 update handled this

Awesome! It's fixed.

Was this page helpful?
0 / 5 - 0 ratings