Skip to content

Commit

Permalink
ignore scrolling if options.autoHeight is true, fixes #674
Browse files Browse the repository at this point in the history
  • Loading branch information
6pac committed Aug 1, 2022
1 parent b02d093 commit 571dc12
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions slick.grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -4247,6 +4247,9 @@ if (typeof Slick === "undefined") {
}

function handleScroll() {
// autoheight does not have scrolling, but editors can trigger a scroll, which we should ignore
if (options.autoHeight) return;

scrollTop = $viewportScrollContainerY[0].scrollTop;
scrollLeft = $viewportScrollContainerX[0].scrollLeft;
return _handleScroll(false);
Expand Down

0 comments on commit 571dc12

Please sign in to comment.