- From: Donatas Šimkevičius via GitHub <sysbot+gh@w3.org>
- Date: Sun, 16 Jun 2024 16:15:30 +0000
- To: public-css-archive@w3.org
This would be great, there's a lot of cases where the content converts into a slider on mobile or desktop. Having the ability to define ability to drag scroll with mouse would remove the need for most slider libraries and doing gymnastics on enabling or disabling them or sometimes even having slider running but with display: none; on breakpoints which is less than ideal. The scroll-snap is one part of the puzzle that takes us far but it does not work with js drag as it prevents any kind of scroll modification, which leads you to still pretty much implementing all the smooth scroll logic at which point is why even bother, just use a library. For some situations like the active item or/and a number indicator n/total would still be acceptable to do with js as most of it can be easily achieved with intersection observers and that would still be a fraction of js that is needed for a full fledged slider, while at the same time just a minor hiccup with js disabled as most would still work. -- GitHub Notification of comment by donnysim Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/9811#issuecomment-2171756784 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Sunday, 16 June 2024 16:15:31 UTC