esoftplay 0.0.236 → 0.0.237

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.
@@ -184,7 +184,7 @@ export default class m extends LibComponent<LibCarrouselProps, LibCarrouselState
184
184
  if (this.state.childrenLength > 1) {
185
185
  const offset = { ...event.nativeEvent.contentOffset };
186
186
  const page = this._calculateCurrentPage(offset.x);
187
- const originalPage = Math.round(offset / this.state.size.width);
187
+ const originalPage = Math.round(offset.x / this.state.size.width);
188
188
  if (originalPage != page)
189
189
  this._placeCritical(page);
190
190
  this._setCurrentPage(page);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.236",
3
+ "version": "0.0.237",
4
4
  "description": "embedding data from esoftplay framework (web based) into mobile app",
5
5
  "main": "cache/index.js",
6
6
  "types": "../../index.d.ts",