News for hackers. Stuff that matters.
Re:Ask HN: What are the best personal project websites you'v... by grenoire on Thursday October 27, 2016 @09:55AM (#12805102)
The first one you linked messes up with my scrolling and makes is incredibly slow, I have to use the thin scrollbar on the rights side due to that...
Re:Ask HN: What are the best personal project websites you'v... by chrismorgan on Thursday October 27, 2016 @12:11PM (#12806353)
It was terrible under Firefox on my Surface Book, so out of curiosity I then tried it on Edge: scrolling doesn’t work at all on the touchpad or touchscreen (the arrow keys, Space, Shift+Space, Home and End don’t work in any browser). The scrollbar is the only thing that allows you to navigate down the page.
Re:Ask HN: What are the best personal project websites you'v... by tombrossman on Thursday October 27, 2016 @01:57PM (#12807519)
Disabling JavaScript (or if you are a NoScript user) usually 'fixes' the scroll override annoyances but try going to about:config and toggling layout.css.scroll-behavior.enabled to 'false' as well.

I started noticing some sites were hijacking scroll despite having them blocked by NoScript, however the above config change fixed that instantly. Turns out scroll can be hijacked by CSS now, not just JavaScript. Progress!

Re:Ask HN: What are the best personal project websites you'v... by godshatter on Thursday October 27, 2016 @02:15PM (#12807727)
Nice. Unfortunately, that configuration option doesn't exist in Pale Moon.
Re:Ask HN: What are the best personal project websites you'v... by dougk16 on Thursday October 27, 2016 @10:32AM (#12805358)
Did you mean worrydream or my personal website? If you mean mine, sorry for the scroll-jacking! It's been a few years since I've touched the input handling code and that kind of stuff tends to rust really fast. Might have to go back in there.
Re:Ask HN: What are the best personal project websites you'v... by mdrzn on Thursday October 27, 2016 @10:43AM (#12805443)
Talking about worrydream.com
Re:Ask HN: What are the best personal project websites you'v... by wlesieutre on Thursday October 27, 2016 @10:49AM (#12805512)
Yeah, I'm in Chrome on Windows and a full spin of the scroll wheel moves it down about 5 pixels.

Given how much thought he puts into user experience in his projects, that's really weird. I have to scroll with click and drag and sort of "throw" the page upward as if I'm using a touchscreen.

Re:Ask HN: What are the best personal project websites you'v... by worldsayshi on Thursday October 27, 2016 @11:03AM (#12805647)
In Swedish there is an expression "The smith's horse and the shoemakers children are worst shod" that comes to mind.

It's kind of when fashion designers wears an ill fitting t-shirt and jeans I guess.

Re:Ask HN: What are the best personal project websites you'v... by rpeden on Thursday October 27, 2016 @10:57AM (#12805588)
That is really weird. I'm using Chrome on Windows too, and my scroll wheel works normally on the site. I wonder what is causing the different behaviors we're seeing.
Re:Ask HN: What are the best personal project websites you'v... by wlesieutre on Thursday October 27, 2016 @11:17AM (#12805810)
It works sorta-fine in Firefox. I say "sorta" because it overrides the browser's smooth scrolling to move in jerky steps on every click of the wheel, but at least it moves useably fast.

To hazard a guess, the testing environment was a Mac with trackpad scrolling. Each scrolling step on that would be small enough that "teleport to next scroll position" looks smooth, and breaking the built-in smooth scrolling wouldn't be noticeable.

I do wish people would stop trying to reimplement scrolling and just let the OS/browser do it...

FWIW I'm in Chrome 54 on Windows 7.

Re:Ask HN: What are the best personal project websites you'v... by d-sc on Thursday October 27, 2016 @01:57PM (#12807520)
On my iPhone it works perfectly.
Re:Ask HN: What are the best personal project websites you'v... by mdrzn on Thursday October 27, 2016 @10:10AM (#12805211)
Same, I think it's on purpose.
Re:Ask HN: What are the best personal project websites you'v... by dsp1234 on Thursday October 27, 2016 @11:42AM (#12806027)
Why would someone purposefully make navigation of their site significantly worse than the default?
Re:Ask HN: What are the best personal project websites you'v... by Cymen on Thursday October 27, 2016 @04:28PM (#12809659)
I've seen slower scrolling done to improve the "mouth feel" of the website. It's usually a designer wanting to do it without considering the full ramifications of their whimsy.