Skip to content

Conversation

@alexanbj
Copy link
Contributor

@alexanbj alexanbj commented Dec 18, 2025

Denne PRen skriver om Carousel-kompoenten til å bruke CSS scroll snap events, med fallback til intersection observer for de browserne som ikke støtter scroll snap events

https://developer.chrome.com/blog/scroll-snap-events og https://developer.mozilla.org/en-US/docs/Web/API/SnapEvent

Har også en annen branch klar med støtte for autoscroll basert på denne implementasjonen.

To do:

  • Noe autofocus på scroll-knappene som jeg ikke helt skjønner hvordan fungerer i gamle implementasjonen. Ser på det etter jul.

@changeset-bot
Copy link

changeset-bot bot commented Dec 18, 2025

🦋 Changeset detected

Latest commit: e0b59f9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@obosbbl/grunnmuren-react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants