Closed Lunokes closed 5 years ago
@Lunokes Thanks for opening an issue!
Okay, after researching I was unable to find a simple way to implement this feature. Since the webview uses an iframe it seems we are able to send javascript to the webview but getting data back is not so easy because of security/cross-origin type errors. Even when trying to disable security on the iframe it was still blocking.
To find a way around this we will create a websocket server that the iframe can talk to! With this we can get the scrollY position and use this to scroll the document on reload!
If you have time to test please update to version 1.3.0 and let me know if this solves your issue!
Hey @sean-codes ,
Thanks so much for the reply and for having a look at this!
I'm really not sure if it's something I am doing wrong here but I can't quite get it to work as you have? I have updated and switched on the setting on as you've done, but it doesn't seem to save - baffled:
Any ideas?
@sean-codes ,
I'm not sure how but I've just been working again and it seems to be working now. Unsure as to why it wasn't this morning. I'll keep you updated on if it stops again - thank you!
@Lunokes Thanks a bunch for testing! Looks like I have over engineered this a bit. Going to take another look! Our current solution will work for most scenarios but sometimes web security might block us. For example github.com will give us:
Will push an update in a moment!
Update is on 1.4! This feature should now be much more reliable :]
@sean-codes 👏👏👏 working perfectly.
Thank you Sean and hope you keep up the work on this, it's brilliant.
Yay, thanks for your help!
Hi Sean,
Just a small request which is that it would be great to have a setting so that when the browser refreshes, it doesn't scroll right back to the top - if it could fix in position that would be incredible.
Thanks Luke