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 committed Apr 30, 2023
1 parent b120e1f commit 2c56433
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 @@ -1603,6 +1603,7 @@ if (typeof Slick === "undefined") {
draggable: '.slick-header-column',
dragoverBubble: false,
revertClone: true,
scroll: !hasFrozenColumns(), // enable auto-scroll
onStart: function (e) {
canDragScroll = !hasFrozenColumns() ||
utils.offset(e.item).left > utils.offset(_viewportScrollContainerX).left;
Expand Down

0 comments on commit 2c56433

Please sign in to comment.