From ec18ebddcf65607ad473e98bc4baaf732b5b23f3 Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Sat, 18 Mar 2023 02:10:26 -0400 Subject: [PATCH 1/2] fix: enable AutoScroll with SortableJS for column reordering, fixes #735 --- slick.grid.js | 1 + 1 file changed, 1 insertion(+) diff --git a/slick.grid.js b/slick.grid.js index 2bda307b..a4e01dd0 100644 --- a/slick.grid.js +++ b/slick.grid.js @@ -1566,6 +1566,7 @@ if (typeof Slick === "undefined") { draggable: '.slick-header-column', dragoverBubble: false, revertClone: true, + scroll: !hasFrozenColumns(), onStart: function (e) { canDragScroll = !hasFrozenColumns() || $(e.item).offset().left > $viewportScrollContainerX.offset().left; From 4a2c85a8fe31fa133df4c77e4f9bb598f84c8c4a Mon Sep 17 00:00:00 2001 From: ghiscoding Date: Sat, 18 Mar 2023 02:15:17 -0400 Subject: [PATCH 2/2] chore: add auto-scroll comment for clarity --- slick.grid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slick.grid.js b/slick.grid.js index a4e01dd0..7b7d7426 100644 --- a/slick.grid.js +++ b/slick.grid.js @@ -1566,7 +1566,7 @@ if (typeof Slick === "undefined") { draggable: '.slick-header-column', dragoverBubble: false, revertClone: true, - scroll: !hasFrozenColumns(), + scroll: !hasFrozenColumns(), // enable auto-scroll onStart: function (e) { canDragScroll = !hasFrozenColumns() || $(e.item).offset().left > $viewportScrollContainerX.offset().left;