Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
stop: () => cancelOnFrameUpdate(nextFrame)
};
stop() {
const { onStop, _onStop, passive } = this.props;
if (!passive) {
this._isActive = false;
cancelOnFrameUpdate(this.scheduledUpdate);
}
if (this.onStop) this.onStop();
if (onStop) onStop(this);
if (_onStop) _onStop(this);
return this;
}