Hacker News new | past | comments | ask | show | jobs | submit login

Side note: this page gives me the weirdest Firefox behaviour I've ever seen: https://gfycat.com/HandyRapidJabiru



That is weird! Would you mind providing your system configuration and Firefox version info so I can file a bug? (Or you could file one here yourself if you're so inclined: https://bugzilla.mozilla.org/enter_bug.cgi?format=guided#h=b...)


Do not file a bug, you might get arrested.


Using firefox too, I cannot replicate the behaviour. Could it be something from your side of things causing this ? Have you tried turning it off and on again ?


I am having this exact issue.

- Firefox 54.0.1 (64-bit)

- Arch Linux 4.11.5-1-ARCH


I'm on the 4.11.9-1-ARCH kernel, but same Firefox version. I'm only able to reproduce with the Zotero addon enabled, are you using it too?


I also have this issue, interestingly also on Arch. I also seen other site with that issue before but I can't find it now.


I want to emulate that behavior somehow.


So I tried but the results were... um, unexpected: https://gfycat.com/negligiblesnivelingastarte

Code:

    var db = document.body;document.onscroll = function(){db.style.transform = 'scaleY(1)'; db.style.transform = 'scaleY('+db.scrollHeight / (db.scrollHeight - db.scrollTop)+')'}


That looks like it would be a good April Fool's Day prank.


It seems from the code you first stretch it out to Infinity and then when scrollTop is bigger than scrollHeight, you go from negative Infinity back to 1. Negative values of scale() 'mirrors' the element. Maybe make sure scrollTop is never equal to or bigger than scrollHeight.


This result is by itself amazing, but if you want to make it behave a bit more like the bug you can set the transform-origin to "center bottom".


That's probably the weirdest browser behaviour I've seen on any browser! I don't even know how I would describe that to someone :/


Like it's printed on some form of mathematical hyper-rubber sheet, and scrolling pulls it down until it stretches into invisibility, rendering the next rubber page visible.


ITS A BAD CASE OF THE STRETCHIES


It looks like the scrolling in Firefox is implemented in screen-height tiles, and when he's scrolling it's picking a smaller and smaller portion of the top tile (as the top portion of the tile is scrolling out of the window) but not updating the bottom coordinate of the rectangle it's supposed to render to (so instead of moving up, instead the smaller and smaller portion gets stretched out to fill the window). Then when the top tile is supposed to be completely off-screen, it jumps to the second tile in one go.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: