Skip to content

[css-scroll-snap-2] Use present tense for snap event names #9697

@DavMila

Description

@DavMila

It was pointed out here that "snapchanged" (introduced in the scroll-snap-2 spec) doesn't follow the convention of using present tense to name JavaScript events.

Additionally, zcorpan suggests using names that put the snap events closer, alphabetically, to the scroll and scrollend events.

To riff off on that suggestion, I propose:

  • scrollsnapchanging instead of snapchanging, and
  • scrollsnapchange instead of snapchanged

which reflect not just that snapping is happening but that there is a change in snap targets as is the intention of the events.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions