Skip to content

Commit

Permalink
Merge pull request #3536 from IgniteUI/MKamenov/fix-3482-62x
Browse files Browse the repository at this point in the history
Adding correct calculation for scrollNext. - 6.2.x
  • Loading branch information
kdinev authored Jan 9, 2019
2 parents ad535e2 + 221e949 commit 387c2c2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -458,9 +458,9 @@ export class IgxForOfDirective<T> implements OnInit, OnChanges, DoCheck, OnDestr
* ```
*/
public scrollNext() {
const scr = this.igxForScrollOrientation === 'horizontal' ?
const scr = Math.ceil(this.igxForScrollOrientation === 'horizontal' ?
this.hScroll.scrollLeft :
this.vh.instance.elementRef.nativeElement.scrollTop;
this.vh.instance.elementRef.nativeElement.scrollTop);
const endIndex = this.getIndexAt(
scr + parseInt(this.igxForContainerSize, 10),
this.sizesCache,
Expand Down

0 comments on commit 387c2c2

Please sign in to comment.