Skip to content

_placeCritical() bad logic was executed #287

@008v

Description

@008v

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();
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions