[Help]: Is AutoHeight behavior based on slideRegistry instead of slidesInView by design? #1174
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @keatkeat87, Thank you for your questions.
Yes, it is. This happens because a slide can be considered visible even if just 1 pixel is showing (when This tends to happen more often when
At the time of writing, it's not possible to override this behavior. However, it might make sense to introduce an option that lets users choose whether |
Beta Was this translation helpful? Give feedback.
Hi @keatkeat87,
Thank you for your questions.
Yes, it is. This happens because a slide can be considered visible even if just 1 pixel is showing (when
inViewThreshold: 0
). Setting the carousel height based on such minimal visibility can lead to confusing behavior — the user might not notice that 1 pixel, yet the carousel height still changes unexpectedly.This tends to happen more often when
dragFree: true
, since the user can drag freely without scroll snap restrictions, making partial visibility of slides more common.