diff --git a/README.md b/README.md index 90618c7..75a2b3c 100644 --- a/README.md +++ b/README.md @@ -32,29 +32,10 @@ allprojects { ``` dependencies { - implementation 'com.github.jama5262:CarouselView:1.1.0' + implementation 'com.github.jama5262:CarouselView:1.2.2' } ``` -#### Maven - -``` - - - jitpack.io - https://jitpack.io - - -``` - -``` - - com.github.jama5262 - CarouselView - 1.1.0 - -``` - Great the project has been setup 👍 ## Usage diff --git a/carouselview/src/main/java/com/jama/carouselview/CarouselView.java b/carouselview/src/main/java/com/jama/carouselview/CarouselView.java index 0cf2962..e0162d0 100644 --- a/carouselview/src/main/java/com/jama/carouselview/CarouselView.java +++ b/carouselview/src/main/java/com/jama/carouselview/CarouselView.java @@ -120,6 +120,7 @@ private void setAdapter() { carouselRecyclerView.setLayoutManager(this.layoutManager); this.carouselRecyclerView.setAdapter(new CarouselViewAdapter(getCarouselViewListener(), getResource(), getSize(), carouselRecyclerView, this.getSpacing(), this.getCarouselOffset() == OffsetType.CENTER)); if (this.enableSnapping) { + this.carouselRecyclerView.setOnFlingListener(null); this.snapHelper.attachToRecyclerView(this.carouselRecyclerView); } this.setScrollListener();