Replies: 1 comment 15 replies
-
@Ra0R Embla doesn't prevent any clicks when the carousel already has been dragged and is in motion. It only prevents clicks when the pointer is pressed and it registers a drag interaction rather than a static click - Which can be configured with the I'm not sure I understand what the problem is. Could you elaborate? Best, |
Beta Was this translation helpful? Give feedback.
15 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
Currently when dragging (with the mouse) with options:
const [emblaRef, emblaApi] = useEmblaCarousel({ loop: false, containScroll: 'trimSnaps', skipSnaps: true });
The carousel takes a long time to settle and elements to become clickable again. Is there an option to enable a sampling rate or something similar?
Currently when listening to event scroll:
emblaApi.on('scroll', () => { console.log(emblaApi.scrollProgress()) })
The scroll value is updated a lot with of very small values and takes a long time to settle:
Is it possible to define some minimum, e.g. delta = 0.01, such that value changes below that are ignored?
If applicable, which variants of Embla Carousel are relevant to this conversation?
Additional information
No response
CodeSandbox example
No response
Beta Was this translation helpful? Give feedback.
All reactions