News for hackers. Stuff that matters.
Re:Show HN: The Fastest Slider library for high performance ... by MNNTNK on Tuesday June 28, 2022 @04:20PM (#31912511)
I've been pretty disappointed with existing slider libraries because of their horrendous impact on the browser's main thread, and they also cause layout shifts which is a total pain in the neck to get rid off - They do not provide any way to fix the layout shifts in a idiomatic way.

So, I decided to create a slider library that focuses purely on being as fast as possible but still pretty push fully featured and super customizable. The library I have created is 30x faster than slick, 15x faster than swiper - while still being 5x smaller than slick and 19x smaller than swiper in size.

Despite being so small and fast - it still has lots of features and customizability.

I've just released V1.0 - Do check it out

Re:Show HN: The Fastest Slider library for high performance ... by axyz on Tuesday June 28, 2022 @06:16PM (#31913799)
You may need some sort of threshold to ignore scrolls that are mostly vertical. It's really hard to scroll the page on mobile as the slider prevents the default scroll unless the movement is perfectly vertical
Re:Show HN: The Fastest Slider library for high performance ... by MNNTNK on Tuesday June 28, 2022 @11:49PM (#31916274)
Yeah, This is not good. This is happening because I've set `touch-action: none` CSS. It should be `touch-action: pan-y`

Edit: Fixed in V1.0.1