Skip to content

Commit

Permalink
Merge pull request #3535 from IgniteUI/MKamenov/fix-3482-71x
Browse files Browse the repository at this point in the history
Adding correct calculation for scrollNext.
  • Loading branch information
kdinev authored Jan 9, 2019
2 parents aba326a + 693e412 commit 7bef843
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 7bef843

Please sign in to comment.