You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which variants of Embla Carousel are relevant to this feature request?
embla-carousel (Core)
embla-carousel-react
embla-carousel-vue
embla-carousel-svelte
embla-carousel-autoplay
embla-carousel-auto-scroll
embla-carousel-solid
embla-carousel-auto-height
embla-carousel-class-names
embla-carousel-fade
embla-carousel-website (Documentation)
Feature description
When dragging beyond the first/last elements (overdragging), the degree to which blank space becomes visible seems to be about 50% of the container. On wide containers (e.g. the entire screen), this overdrag margin is excessive, but there appear to be no option to configure it.
I4zKEOAaYo.mp4
(In this video, only about 50% of the screen width is captured)
Additional Context
Ideally I should be able to specify that the overdrag margin is 10% of the container scroll direction (width), for example.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Which variants of Embla Carousel are relevant to this feature request?
Feature description
When dragging beyond the first/last elements (overdragging), the degree to which blank space becomes visible seems to be about 50% of the container. On wide containers (e.g. the entire screen), this overdrag margin is excessive, but there appear to be no option to configure it.
I4zKEOAaYo.mp4
(In this video, only about 50% of the screen width is captured)
Additional Context
Ideally I should be able to specify that the overdrag margin is 10% of the container scroll direction (width), for example.
The offending line appears to be here:
https://github.com/davidjerleke/embla-carousel/blob/0fe65834136f1aa35e4c1a4a477e5ccb4bb5ee54/packages/embla-carousel/src/components/ScrollBounds.ts#L21C53-L21C55
In theory, just making this constant an option might fix the issue.
Before submitting
All reactions