We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4381ca5 commit 78a4b43Copy full SHA for 78a4b43
src/js/core/directives/ui-grid-render-container.js
@@ -150,12 +150,12 @@
150
151
// todo: this isn't working when scrolling down. it works fine for up. tested on Chrome
152
// Let the parent container scroll if the grid is already at the top/bottom
153
- if ((scrollEvent.y && scrollEvent.y.percentage !== 0 && scrollEvent.y.percentage !== 1 && containerCtrl.viewport[0].scrollTop !== 0 ) ||
+ if ((scrollEvent.y && scrollEvent.y.percentage !== 0 && scrollEvent.y.percentage !== 1) ||
154
(scrollEvent.x && scrollEvent.x.percentage !== 0 && scrollEvent.x.percentage !== 1)) {
155
- event.preventDefault();
156
- }
157
158
- scrollEvent.fireThrottledScrollingEvent();
+ event.preventDefault();
+ scrollEvent.fireThrottledScrollingEvent();
+ }
159
});
160
161
$elm.bind('$destroy', function() {
0 commit comments