Skip to content

Commit

Permalink
Merge pull request #3543 from IgniteUI/MKamenov/fix-3482-master
Browse files Browse the repository at this point in the history
Adding correct calculation for scrollNext. - Master
  • Loading branch information
rkaraivanov authored Jan 9, 2019
2 parents 00defd5 + 8513e35 commit a6d2a83
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 a6d2a83

Please sign in to comment.