I have an RG (currently 7 columns, 3 are showing 4 are findable in a horizontal scroll), and the user can make more.
The RG columns have a DROP area.
The cards in the column are dropable.
I can drag and drop the cards in the column to other columns, update the data, and make sure it stays in that column. WORKS!
Now because there are so many columns, when a user picks a card in column 1 and wants to move it to the last column, the user can’t get there. Because when picking up the card the screen doesn’t ‘auto-scroll’ to the directing I want it to go.
Any suggestions on how to scroll, while having a draggable object?
Just figured out how to scroll when dragging & dropping within a group!
give an idea to your group (here it is ‘team’)
add a HTML element to your page, with the following code (replace my ‘team’ id by the id you set to the group). Don’t forget to add script and /script balises at the beginning/end
magic happens!
function enableScrollOnDrag() {
var teamGroup = document.getElementById(‘team’);
var scrollThreshold_Desktop = 90;
var scrollSpeed_Desktop = 20;