I am facing an issue with the ngu-carousel I have implemented. There are over 100 data items, and when a user tries to slide using touch, it is not moving smoothly. I would like to disable the next and prev buttons since the mobile screen size is small.
myapp.ts file
this.carouselOne = {
grid: { xs: 2, sm: 2, md: 3, lg: 4, xl: 6, all: 0 },
slide: 2,
speed: 400,
interval: 4000,
point: {
visible: true
},
load: 2,
touch: true,
custom: "banner"
};
myapp.html
<div class="card-block-carousel" #carouselContainer id="carouselContainer">
<div [@cardToggle]="cardToggle" class="overflowvis">
<ngu-carousel [inputs]="carouselOne">
<ngu-item *ngFor="let freebie of data">
/// my card divs here
</ngu-item>
</ngu-carousel>
</div>
I have created a sample code on SlackBlitz to demonstrate the issue. If you check the slider with touch functionality, it does not work smoothly (https://stackblitz.com/edit/ngu-carousel-demo-jn8laf?file=src%2Fapp%2Fapp.component.ts,src%2Fapp%2Fsimple%2Fsimple.component.ts,src%2Fapp%2Fsimple%2Fsimple.component.html)
I would appreciate any suggestions on how to resolve this issue.