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 · 10 comments
Open

disableGesture: true, no't work #438

bigbingg opened this issue Apr 16, 2024 · 10 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

@jishnulal-crypto
Copy link

is this issue fixed

@JosephNK
Copy link

@jishnulal-crypto not yet.. not fixed.

I temporarily solved it using the AbsorbPointer widget.

AbsorbPointer(
  absorbing: true,
  child: CarouselSlider(
     ...
  )
)

@kishan-dhankecha
Copy link

@jishnulal-crypto, @JosephNK

This issue is already fixed and live on pub.dev, This is my own fork.

@JosephNK
Copy link

JosephNK commented Jun 19, 2024

@kishan-dhankecha

I'm currently using the latest version 4.2.1, but it doesn't work.

disableGesture: true

Even with this setting, the gesture works.

There are various types of gestures, but if disableGesture: true, the first one works for manual scrolling.

@kishan-dhankecha
Copy link

Please click on the link given in above comment!!

@JosephNK
Copy link

JosephNK commented Jun 19, 2024

@kishan-dhankecha
Sorry. Has the carousel_slider plugin been replaced by the carousel_slider_plus plugin?
Will the carousel_slider plugin not be updated in the future?

@kishan-dhankecha
Copy link

The carousel_slider is not maintained anymore so I have created my own fork carousel_slider_plus and pushed it on pub.dev.

I am also fixing some bugs that are being discovered in carousel_slider.

@JosephNK
Copy link

@kishan-dhankecha Thanks :)

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

6 participants