Scroll position changes on window resize. :maybe:

Joined
Jun 18, 2018
Messages
3
I believe I encountered a bug.

The bug occurs in the viewer when the browser window is resized horizontally and the view mode is set to "long strip" and either "fit width" or "fit container". As you reduce or increase the width of the browser window (by dragging the edge of the window), the relative position of the scroll bar changes which effectively acts like you are scrolling up or down. For example, say the browser window originally had width 500px and the page 10 of the strip is in view. Then you contract the window to 250px. At this point, I think the intended behavior should be for page 10 to still be in view, in the exact same relative location as before. However, the observed behavior is that page 14 is now in view.

A few other things:

The behavior does not occur when the view mode is set to "fit height", or "no resize".

The speed at which the window contraction causes the images to scroll is greater when a greater number of images are loaded (so after the reader has gotten to the bottom and loaded all the images in the chapter).

The behavior is present in Firefox 63.0.3 and Chrome 71.0.3578.98.

I doubt it had been present for long since I can't believe I wouldn't have noticed it before given that I've been using this site for several months.

Opening and closing the side menu (the control menu on the right) also causes the scroll position to change under the same conditions as resizing the window so it is probably caused by the same thing.

Thanks and please let me know if I could provide any additional information and I hope this helps.
 
Definitely not a new change (especially since the reader hasn't been updated at all in like months) or really even a bug, this is simply how browsers work normally. I can appreciate that it might be temporarily annoying in some cases, but I don't know if this is really worth hacking around a solution for, since it doesn't seem like a very common use case to often switch browser size around while midway through a chapter in long strip mode.

Well, I can't decide yet what to do with this, but I'll keep it in mind.
 
Thanks for the reply. Only do something if your think it's worth it of course. I only brought it up because it seemed like unintended operation and I thought it might have been an easily fixed oversight.
 

Users who are viewing this thread

Back
Top