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
I can't imagine that this is intended as I'm able to modify the exact same enabled property for mousewheel with swiper.mousewheel.enabled = false or using the method swiper.mousewheel.disable().
I found a workaround which is to simply remove the document.querySelector('.swiper-wrapper').classList.remove('swiper-free-mode') which seems to disable freeMode.
If this is not intended please make properties accessible and add methods. Thank you
Check that this is really a bug
Reproduction link
https://codepen.io/quill-quarius/pen/ExqjKrP?editors=1111
Bug description
There seem to be no methods allowing one to change the "enabled" property of freeMode after initialization.
let swiper = new Swiper('.swiper', { freeMode: { enabled: true, } });
console.log(swiper.freeMode.enabled)
returns undefinedI can't imagine that this is intended as I'm able to modify the exact same enabled property for mousewheel with
swiper.mousewheel.enabled = false
or using the methodswiper.mousewheel.disable()
.I found a workaround which is to simply remove the document.querySelector('.swiper-wrapper').classList.remove('swiper-free-mode') which seems to disable freeMode.
If this is not intended please make properties accessible and add methods. Thank you
Expected Behavior
No response
Actual Behavior
No response
Swiper version
v11.1.14 (CDN)
Platform/Target and Browser Versions
Windows, Brave (Chromium)
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: