From cb1e453fe497bd8da2b4bbcf14a6fb49c84a58bd Mon Sep 17 00:00:00 2001 From: Lebedev Konstantin Date: Wed, 22 Jun 2016 13:42:19 +0300 Subject: [PATCH] #857: + will-change on drag --- Sortable.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Sortable.js b/Sortable.js index d271999..af23804 100644 --- a/Sortable.js +++ b/Sortable.js @@ -336,6 +336,7 @@ // Make the element draggable dragEl.draggable = true; + dragEl.style.willСhange = 'transform'; // Chosen item _toggleClass(dragEl, _this.options.chosenClass, true); @@ -766,6 +767,7 @@ } _disableDraggable(dragEl); + dragEl.style.willChange = ''; // Remove class's _toggleClass(dragEl, this.options.ghostClass, false);