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

Stop slideing when touched #166

Open
whimzyLive opened this issue Jul 25, 2019 · 2 comments
Open

Stop slideing when touched #166

whimzyLive opened this issue Jul 25, 2019 · 2 comments
Labels
touch:bug Carousel touch bug

Comments

@whimzyLive
Copy link

h2.Background:
I am using ngu-carousel in my angular app, and is working brilliantly, but now the problem that I am facing is to stop sliding when touched/clicked.

h3.Use Case
I have images and videos inside slider and would like to have auto sliding on initially and when someone clicks/touches (i.e playing a video) slider should stop auto sliding.

h3.Potential solution
ngu-carousel should accept NguCarouselConfig as observable and subscribe to it. May be?

I will be happy to do PR if guided to what else depends on config.

@dima-gusyatiner
Copy link

I also have issues with the slider when touched,
for me:

  • you swipe on the carousel
  • it moves a little bit
  • the point stops working (no point is selected)
  • swiping doesn't do anything at all
  • pressing on a button (next/prev) doesn't work

@GregKlarecky
Copy link

try putting event.preventDefault() on dragstart event on your images and moving cdr.detectChanges() to the place where carousel data for dataSource input is initialized. Put ngIf on your carousel wrapper *ngIf="dataSource"

@sheikalthaf sheikalthaf added the touch:bug Carousel touch bug label Jun 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
touch:bug Carousel touch bug
Projects
None yet
Development

No branches or pull requests

4 participants