logoalt Hacker News

black_rabbit_yesterday at 10:33 PM2 repliesview on HN

You did a fantastic job; very to-the-point with effective visualisations. Kudos!

One very minor note: if your scroll device reports pixel-perfect deltas rather than discrete scroll-wheel ticks (e.g. logitech mx master, laptop touchpad, etc), the behaviour in the word search box is a bit weird. Arrow keys work fine though.


Replies

Labo333today at 12:08 AM

Thank you!

I did test it with my mac touchpad without issue. Maybe the problem is that I wanted to make discrete scroll-wheel ticks work. I just tried a fix by normalising deltaMode to pixels.

If you could just paste this in your console, I would have a better idea:

    document.querySelector('.wall').addEventListener('wheel', e =>
      console.log(e.deltaMode, e.deltaY.toFixed(2), e.defaultPrevented ? 'PAGE' : 'native'), true)
show 1 reply
imp0cattoday at 5:12 AM

On a compatible Logitech device, browsing through the word search box benefits a lot from enabling hyperscroll.

show 1 reply