Skip to content

Commit

Permalink
Merge pull request #4201 from SomeKittens/fix-expanded-double-scroll
Browse files Browse the repository at this point in the history
fix(expandable): fix #4156 by calling stopProp on subgrid scroll
  • Loading branch information
swalters committed Aug 16, 2015
2 parents e6bc300 + a7dd337 commit 20ff45e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/js/core/directives/ui-grid-render-container.js
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@
}
else {
event.preventDefault();
event.stopPropagation();
scrollEvent.fireThrottledScrollingEvent('', scrollEvent);
}

Expand Down
3 changes: 2 additions & 1 deletion src/js/core/services/ui-grid-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -1393,7 +1393,8 @@ module.service('gridUtil', ['$log', '$window', '$document', '$http', '$templateC
deltaX: deltaX,
deltaY: deltaY,
deltaFactor: lowestDelta,
preventDefault: function () { event.preventDefault(); }
preventDefault: function () { event.preventDefault(); },
stopPropagation: function () { event.stopPropagation(); }
};

// Clearout lowestDelta after sometime to better
Expand Down

0 comments on commit 20ff45e

Please sign in to comment.