Skip to content

Commit

Permalink
fix: enable AutoScroll with SortableJS for column reordering, fixes #735
Browse files Browse the repository at this point in the history
 (#736)

* fix: enable AutoScroll with SortableJS for column reordering, fixes #735

* chore: add auto-scroll comment for clarity
  • Loading branch information
ghiscoding authored Mar 18, 2023
1 parent 345300c commit 9fa0860
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions slick.grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -1566,6 +1566,7 @@ if (typeof Slick === "undefined") {
draggable: '.slick-header-column',
dragoverBubble: false,
revertClone: true,
scroll: !hasFrozenColumns(), // enable auto-scroll
onStart: function (e) {
canDragScroll = !hasFrozenColumns() ||
$(e.item).offset().left > $viewportScrollContainerX.offset().left;
Expand Down

0 comments on commit 9fa0860

Please sign in to comment.