We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add previousSlide.panel.translateX = 0 to fix the previousSlide to the reset position .
public goToSlide(index: number): void { if ( this._slideMap && this._slideMap.length > 0 && index < this._slideMap.length ) { let previousSlide = this.currentPanel; // fix right translateX value previousSlide.panel.translateX = 0; this.setupPanel(this._slideMap[index]);
this.notify({ eventName: SlideContainer.changedEvent, object: this, eventData: { direction: direction.none, newIndex: this.currentPanel.index, oldIndex: previousSlide.index } }); } else { // console.log('invalid index'); }
}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
add previousSlide.panel.translateX = 0
to fix the previousSlide to the reset position .
public goToSlide(index: number): void {
if (
this._slideMap &&
this._slideMap.length > 0 &&
index < this._slideMap.length
) {
let previousSlide = this.currentPanel;
// fix right translateX value
previousSlide.panel.translateX = 0;
this.setupPanel(this._slideMap[index]);
}
The text was updated successfully, but these errors were encountered: