News for hackers. Stuff that matters.
Re:Lerp by titoasty on Friday April 07, 2023 @11:55AM (#35483019)
Neat, one of the best tricks in the creadev toolbox! ;)

Shameless plug: https://github.com/titoasty/zmooth I just published a JS library to easily make smooth interpolations, just by setting a "to" value (after doing it by hand for years) I hope you'll find it useful!

Re:Lerp by chankstein38 on Friday April 07, 2023 @03:09PM (#35485710)
Please don't make it easier for people to lerp scrolling and other things that shouldn't be lerped. It's annoying and unresponsive feeling when overused.
Re:Lerp by ianbutler on Friday April 07, 2023 @03:26PM (#35485930)
Well since it's a general library others can use it how they see fit. Discouraging someone for a small personal dislike like this is pretty bad form imo.
Re:Lerp by chankstein38 on Friday April 07, 2023 @05:18PM (#35487098)
Check the comments, it's not a small personal dislike it seems pretty ubiquitous. Simply trying to make sure it's well known that there seems to be a consensus that lerping can be used incorrectly to the detriment of user experience. It'd be nice if libraries were on board with that too.

And, to be fair, self promotion in an HN comment thread about a topic is bad form too. I know you're not the OC but the point seems fair.

Re:Lerp by titoasty on Friday April 07, 2023 @07:08PM (#35488280)
So you're implying I am responsible for the "bad" things people will make with this (unknown) library. That I literally use for my everyday job for functionalities clients ask for. I stated that I use it to make my life easier and so I just shared it. "things that shouldn't be lerped" are a subjective/UX responsibility. As a creadev I try to propose good practices but I don't often have the final word.

(IMHO "lerp" scrolling is a truly horrible experience)