Skip to content

Commit

Permalink
fix(module: carousel): fix mousemove action when carousel only has tw…
Browse files Browse the repository at this point in the history
…o carouselslide (NG-ZORRO#56)
  • Loading branch information
nuonuoge authored and 3fuyu committed Oct 19, 2018
1 parent e44ba21 commit bc02951
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions components/carousel/carousel.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,9 +348,6 @@ export class CarouselComponent implements AfterViewInit, OnDestroy {
v.left = this.vertical ? 0 : (this._nodeArr.length - 1) * this._rationWidth;
v.top = this.vertical ? (this._nodeArr.length - 1) * this._rationWidth : 0;
}
} else if (index === this._nodeArr.length - 2 && 0 === tempIndex) {
v.left = this.vertical ? 0 : this._nodeArr.length * this._rationWidth;
v.top = this.vertical ? this._nodeArr.length * this._rationWidth : 0;
} else if (index === this._nodeArr.length - 1 && tempIndex === 1 && this.autoplay) {
v.left = this.vertical ? 0 : (this._nodeArr.length + tempIndex) * this._rationWidth;
v.top = this.vertical ? tempIndex * this._rationWidth : 0;
Expand Down

0 comments on commit bc02951

Please sign in to comment.