Skip to content

Commit

Permalink
Merge pull request #4667 from zanemcca/fixNativeInfinite
Browse files Browse the repository at this point in the history
Bug fix for repeated infinite scroll calling after a state change with native scrolling
  • Loading branch information
mlynch committed Dec 6, 2015
2 parents 38a9157 + 3cf3e37 commit 4d8069b
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions js/angular/controller/infiniteScrollController.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,13 +100,15 @@ function($scope, $attrs, $element, $timeout) {
};
var computedStyle = window.getComputedStyle(self.scrollEl) || {};
return {
left: computedStyle.overflowX === 'scroll' ||
computedStyle.overflowX === 'auto' ||
self.scrollEl.style['overflow-x'] === 'scroll' ?
left: maxValues.left &&
(computedStyle.overflowX === 'scroll' ||
computedStyle.overflowX === 'auto' ||
self.scrollEl.style['overflow-x'] === 'scroll') ?
calculateMaxValue(maxValues.left) : -1,
top: computedStyle.overflowY === 'scroll' ||
computedStyle.overflowY === 'auto' ||
self.scrollEl.style['overflow-y'] === 'scroll' ?
top: maxValues.top &&
(computedStyle.overflowY === 'scroll' ||
computedStyle.overflowY === 'auto' ||
self.scrollEl.style['overflow-y'] === 'scroll' ) ?
calculateMaxValue(maxValues.top) : -1
};
};
Expand Down

0 comments on commit 4d8069b

Please sign in to comment.