News for hackers. Stuff that matters.
Re:Jankyscroll – a JavaScript library that doesn't need to e... by kzhahou on Saturday August 15, 2015 @12:36AM (#10064333)
Congratulations on the amazing adoption rate! I've seen this live on hundreds on sites the last few years.
Re:Jankyscroll – a JavaScript library that doesn't need to e... by amsilprotag on Saturday August 15, 2015 @12:36AM (#10064331)
Free Obfuscated Source Satire (FOSS)

The JS from https://github.com/benzweig/jankyscroll:

<script>var jankyscroll=function(){"use strict";function n(){var n=Math.round(Math.random());return 1==n?-1:1}function o(){return(5Math.random()+8)/10}return function(r,t){function i(){a&&clearTimeout(a),a=setTimeout(function(){window.scrollBy(0,to()n())},400)}r=r||400,t=t||20;var e,a,c=function(){var i=Math.floor(window.scrollY/r);e!==i&&(window.scrollBy(0,to()*n()),e=i)};window.addEventListener("scroll",c,!1),window.addEventListener("resize",i,!1)}}();jankyscroll(170,100);</script>

Re:Jankyscroll – a JavaScript library that doesn't need to e... by chncdcksn on Saturday August 15, 2015 @01:10AM (#10064397)
Switch to the master branch. :) it confused me too.
Re:Jankyscroll – a JavaScript library that doesn't need to e... by danboarder on Saturday August 15, 2015 @12:25AM (#10064306)
This reminds me of the "smooth scroll" scripts that muck up so many websites ... it made me laugh out loud!
Re:Jankyscroll – a JavaScript library that doesn't need to e... by wavefunction on Saturday August 15, 2015 @12:36AM (#10064334)
blame apple then

and cry out loud as well

Re:Jankyscroll – a JavaScript library that doesn't need to e... by nvartolomei on Saturday August 15, 2015 @05:08AM (#10064791)
blame "designers" who wanted to emulate this behaviour
Re:Jankyscroll – a JavaScript library that doesn't need to e... by tajen on Saturday August 15, 2015 @04:17AM (#10064714)
I can see Jankyscroll is programmed in VanillaJS, which is another framework I highly recommend: http://vanilla-js.com
Re:Jankyscroll – a JavaScript library that doesn't need to e... by namuol on Saturday August 15, 2015 @03:24AM (#10064640)
I am installing this by default in all my client projects from now on to give them something amorphous to complain about but easy to fix.
Re:Jankyscroll – a JavaScript library that doesn't need to e... by mangeletti on Saturday August 15, 2015 @12:12AM (#10064278)
I think I'm already having heart palpitations.
Re:Jankyscroll – a JavaScript library that doesn't need to e... by cheshire137 on Saturday August 15, 2015 @11:16AM (#10065582)
I've combined this with fartscroll.js and Pride and Prejudice to form a horrible reading experience: http://3till7.net/uploads/2015/08/pride-and-prejudice/
Re:Jankyscroll – a JavaScript library that doesn't need to e... by InclinedPlane on Saturday August 15, 2015 @04:03AM (#10064692)
It's sad that this is actually more functional than the broken scrolling on many popular websites.
Re:Jankyscroll – a JavaScript library that doesn't need to e... by vortico on Saturday August 15, 2015 @12:34AM (#10064324)
Oh, it's like my iPad when scrolling through PDFs.
Re:Jankyscroll – a JavaScript library that doesn't need to e... by minionslave on Saturday August 15, 2015 @12:30AM (#10064315)
That's actually a nice library, that could be use for april fools or something.
Re:Jankyscroll – a JavaScript library that doesn't need to e... by lwf on Saturday August 15, 2015 @01:35AM (#10064446)
Amusingly, my usage of PgUp/PgDown was unaffected.

I will live to scroll another day!

Re:Jankyscroll – a JavaScript library that doesn't need to e... by LED_ on Saturday August 15, 2015 @02:04AM (#10064494)
def file an issue, that's an unacceptable lack of jank
Re:Jankyscroll – a JavaScript library that doesn't need to e... by rcthompson on Saturday August 15, 2015 @02:27AM (#10064531)
You can also defeat it by clicking and dragging the scroll bar. It will still jank, but since it can't move your mouse, the mouse will instantly drag the scroll bar right back to where it was before the jank triggered.
Re:Jankyscroll – a JavaScript library that doesn't need to e... by Zarkonnen on Saturday August 15, 2015 @02:31AM (#10064541)
Ah, that's what the guardian has started using!
Re:Jankyscroll – a JavaScript library that doesn't need to e... by vilmosi on Saturday August 15, 2015 @10:04AM (#10065387)
Hilarious!!
Re:Jankyscroll – a JavaScript library that doesn't need to e... by dmak on Saturday August 15, 2015 @12:31AM (#10064316)
I think this warrants a comment with a simple "LOL"