From c63e235489e15cffab7b338f44ea19d3c7368331 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Wed, 23 Jan 2019 12:51:28 +0100 Subject: [PATCH] js: Make auto-scroll to the top working --- public/js/behavior/sortable.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/js/behavior/sortable.js b/public/js/behavior/sortable.js index c02ce5d..3ca5d1c 100644 --- a/public/js/behavior/sortable.js +++ b/public/js/behavior/sortable.js @@ -17,6 +17,7 @@ $(e.target).find('.sortable').each(function() { var $el = $(this); var options = { + scroll: $el.closest('.container')[0], onMove: function (/**Event*/ event, /**Event*/ originalEvent) { if (typeof this.options['filter'] !== 'undefined' && $(event.related).is(this.options['filter'])) { // Assumes the filtered item is either at the very start or end of the list and prevents the