-
Notifications
You must be signed in to change notification settings - Fork 54
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
Portrait / landscape mode doesn't display the same article #413
Comments
I can not test as I don't have a device with orientation change on hand var stop = 0; var sh = 0; document.getElementById('main-container').onscroll = function(evt) { stop = evt.target.scrollTop; sh = document.getElementById('main-container').scrollHeight; }
window.onresize = function(evt) { document.getElementById('main-container').scroll({ top: document.getElementById('main-container').scrollHeight*(stop/sh) , behavior: 'smooth' })} I've tested with onresize event but you may have to change with onorientationchange |
Please explain me what to do like I'm 5 ^^ |
Don't you have a custom js file already ? |
create a |
ok, like I'm 7 then :D Not sure if I did something wrong ... but it also removed all my items :'( |
Ooops I guess you did something wrong as I don't think what I told you can remove your items... |
Sent by email :-) |
Hi tontof,
Me again :D
I realized that when I turn my mobile on landscape mode (usually to see embedded video within an article), the article displayed isn't the same as the one I was reading in portrait mode.
I'm using android 7.0 with FF 64.0.2
It also work on only text article. Just flip your phone one way and back. You always have to scroll a bit to see the article you were reading.
The text was updated successfully, but these errors were encountered: