mousewheel enable on vertical direction after Slider Section Stick on top #4396
-
Hello Experts, How Do I enable Mousewheel after .swiper-container sticky on top? Not before stick. Thank You. |
Beta Was this translation helpful? Give feedback.
Answered by
nolimits4web
Apr 1, 2021
Replies: 1 comment 1 reply
-
I think the logic should be the following:
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
shankyag
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think the logic should be the following:
scroll
event on document (i.e.document.addEventListener('scroll', handler)
document.querySelector('.swiper-container).getBoundingClientRect().top
)<= 0
if it bound to top edge) do theswiper.mousewheel.enable()