react-native-looped-carousel icon indicating copy to clipboard operation
react-native-looped-carousel copied to clipboard

_placeCritical() bad logic was executed

Open 008v opened this issue 6 years ago • 0 comments

An incorrect operation was performed in the _placeCritical() method.

Specifically,

  _onScrollEnd = (event) => {
    const offset = { ...event.nativeEvent.contentOffset };
    const page = this._calculateCurrentPage(offset.x);
    this._placeCritical(page);     // <--  scroll to some page without animation when onScrollEnd()
    this._setCurrentPage(page);
    this._setUpTimer();
  }

008v avatar Apr 16 '19 12:04 008v