Skip to content

[Feat]: Add 'snap on settle' behavior option for dragFree#1297

Open
ehellman wants to merge 2 commits intodavidjerleke:masterfrom
ehellman:feature/dragfree-snap-on-settle
Open

[Feat]: Add 'snap on settle' behavior option for dragFree#1297
ehellman wants to merge 2 commits intodavidjerleke:masterfrom
ehellman:feature/dragfree-snap-on-settle

Conversation

@ehellman
Copy link
Copy Markdown

@ehellman ehellman commented Mar 10, 2026

This pull request introduces a new 'snap' mode for the dragFree option, allowing a "hybrid"-mode of default snapping and free-dragging. It acts just like dragFree: true, but the final settle destination is always at a snapping point.

The documentation for dragFree has been updated accordingly, as well as the documentation for skipSnaps which previously mentioned dragFree: true but now also includes dragFree: 'snap'.

Since the values for dragFree has been changed from just true/false, I refactored the documentation components a bit to radio buttons as well as adding a title.

image

Video

slidesToScroll: 1

screenrecord.mp4

slidesToScroll: 2

screenrecord.mp4

@davidjerleke davidjerleke added the feature request New feature or request label Mar 13, 2026
@davidjerleke davidjerleke changed the title feat: Add 'snap on settle' behavior option for dragFree [Feat]: Add 'snap on settle' behavior option for dragFree Mar 13, 2026
@davidjerleke
Copy link
Copy Markdown
Owner

Hi @ehellman,

Welcome, and glad to have you here ⭐!

Unfortunately, I didn’t get a chance to give you a heads-up that the generator has been deprecated and the documentation structure has changed quite a bit:

Before I can test this PR, a couple of updates are needed:

  1. We can discard any changes made to the generator files since they’re no longer used.
  2. The documentation site now lives under the website/ folder. The changes should be added to the v9 options.mdx file instead.

Sorry about the inconvenience, and thanks again for taking the time to work on this. Looking forward to testing the feature once it’s updated!

@davidjerleke davidjerleke added the core This is related to the core package label Mar 17, 2026
@davidjerleke davidjerleke added the changes requested Changes needed for this to be approved label Mar 27, 2026
@davidjerleke davidjerleke self-assigned this Mar 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changes requested Changes needed for this to be approved core This is related to the core package feature request New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants