scrollsnap-polyfill icon indicating copy to clipboard operation
scrollsnap-polyfill copied to clipboard

The spec was updated last month, and this polyfill still uses the old values.

Open sdras opened this issue 9 years ago • 7 comments
trafficstars

In this new version of the spec, https://drafts.csswg.org/css-snappoints/, only the scroll-snap-type has the same behavior- we now have new values like scroll-snap-padding.

sdras avatar Mar 04 '16 16:03 sdras

Thanks for reporting this. This will be part of a new release.

I don't have a milestone yet, as i am on vacation in Sri Lanka - it's literally too warm to work on it.

ckrack avatar Mar 05 '16 07:03 ckrack

Looking forward to this update

wjramos avatar Mar 20 '16 00:03 wjramos

@ckrack +1 would be great to have this! :)

haraldox avatar Apr 22 '16 13:04 haraldox

Currently short on time, but i'd be happy to merge pull requests if anyone wants to step ahead. I'd completely ditch the old spec, to keep things tidy.

ckrack avatar Apr 27 '16 15:04 ckrack

For clarity, the spec now supports the following properties:

  • scroll-snap-type
  • scroll-snap-align
  • scroll-snap-margin
  • scroll-snap-padding

Is there anything I'm missing? I'll take a crack at it

wjramos avatar Apr 28 '16 04:04 wjramos

Is there any progress on this issue? for sure it's a lot of work. Unfortunately we had to ditch this library as it wasn't working fine with the new spec.

julesbou avatar Nov 02 '16 14:11 julesbou

+1 for this, new spec properties make scroll snapping much more concise and flexible IMO.

kanzelm3 avatar Dec 15 '17 18:12 kanzelm3