scroll-up-bar icon indicating copy to clipboard operation
scroll-up-bar copied to clipboard

Bar with offset, doesn't adopt to browser dimensions (when rescaled after loading the page)

Open smokingbarrel opened this issue 10 years ago • 2 comments

Bar with offset initially stays in the same position where it was originally loaded. In other words, when the page loads initially, the position and overall function of the bar are correct, BUT if you happened to resize the browser window up or down, the bar retains the same location, whatever it was when the page has loaded.

smokingbarrel avatar Sep 17 '14 05:09 smokingbarrel

Hi, I'm not sure if I understood the issue here. Are you talking about percentage offset? Can you attach a simple example file?

eduardomb avatar Oct 29 '14 17:10 eduardomb

Hello & thanks for sharing the plugin! I have the same or similar question so I am adding mine here: If you have set different vertical offsets for some breakpoints, the bar shows correctly as you scroll up, but if you resize and another media query becomes active, the bar will not be moved to the correct initial offset position for this query, but for the last offset that was loaded.

Example: sm – 50px, md – 100px, lg – 200px offsets. If you loaded the page in md and then resize to lg or sm, the bar will show at 100px if you scroll all the way up. As soon as you reload the offset is corrected. Is there a way to trigger a reload automatically or something else that would make it work? Thanks!

marflow avatar Jun 16 '16 09:06 marflow