@codeleap/mobile 3.15.1 → 3.15.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codeleap/mobile",
3
- "version": "3.15.1",
3
+ "version": "3.15.2",
4
4
  "main": "src/index.ts",
5
5
  "license": "UNLICENSED",
6
6
  "repository": {
@@ -117,7 +117,7 @@ export const Pager = (pagerProps: PagerProps) => {
117
117
  const x = nativeEvent.contentOffset.x
118
118
  const toPage = Math.ceil(x / width)
119
119
 
120
- if (toPage !== page && toPage <= childArr.length - 1) {
120
+ if (toPage !== page && toPage <= childArr.length - 1 && !!scrollEnabled) {
121
121
  setPage(toPage)
122
122
  setPositionX(toPage * width)
123
123
  }