esoftplay 0.0.232 → 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);
@@ -200,6 +200,7 @@ export default {
200
200
  if (routes && routes.length > 0) {
201
201
  _route = [..._route, ...routes]
202
202
  }
203
+ this._ref?.dispatch?.(StackActions.popToTop());
203
204
  const resetAction = CommonActions.reset({
204
205
  index: _route.length - 1,
205
206
  routes: _route.map((rn) => ({ name: rn }))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esoftplay",
3
- "version": "0.0.232",
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",