Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disableGesture: true, no't work #438

Open
bigbingg opened this issue Apr 16, 2024 · 3 comments
Open

disableGesture: true, no't work #438

bigbingg opened this issue Apr 16, 2024 · 3 comments

Comments

@bigbingg
Copy link

No description provided.

@davidequadrelli-b
Copy link

davidequadrelli-b commented Apr 19, 2024

Same problem. With the latest version of the library 4.2.1, when setting the property disableGesture: true the carousel still swipes. I also noticed that instead of sending CarouselPageChangedReason.manual reason in the onPageChanged listener, it sends CarouselPageChangedReason.controller.

EDIT: I solved the problem without the disableGesture property but using the NeverScrollableScrollPhysics()

scrollPhysics: shouldScroll ? scrollPhysics : const NeverScrollableScrollPhysics()

@iCodeee
Copy link

iCodeee commented Apr 28, 2024

Same problem. With the latest version of the library 4.2.1, when setting the property disableGesture: true the carousel still swipes. I also noticed that instead of sending CarouselPageChangedReason.manual reason in the onPageChanged listener, it sends CarouselPageChangedReason.controller.

EDIT: I solved the problem without the disableGesture property but using the NeverScrollableScrollPhysics()

scrollPhysics: shouldScroll ? scrollPhysics : const NeverScrollableScrollPhysics()

you can use physics: widget.options.scrollPhysics

kishan-dhankecha added a commit to kishan-dhankecha/carousel_slider_plus that referenced this issue May 18, 2024
@jishnulal-crypto
Copy link

is this issue fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants