From d347d2d6ce49913e525823e0dca6b164067d3e9d Mon Sep 17 00:00:00 2001 From: Lebedev Konstantin Date: Wed, 22 Jun 2016 13:45:49 +0300 Subject: [PATCH] willChange -> will-change --- Sortable.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Sortable.js b/Sortable.js index af23804..d07411d 100644 --- a/Sortable.js +++ b/Sortable.js @@ -329,6 +329,8 @@ nextEl = dragEl.nextSibling; activeGroup = options.group; + dragEl.style['will-change'] = 'transform'; + dragStartFn = function () { // Delayed drag has been triggered // we can re-enable the events: touchmove/mousemove @@ -336,7 +338,6 @@ // Make the element draggable dragEl.draggable = true; - dragEl.style.willСhange = 'transform'; // Chosen item _toggleClass(dragEl, _this.options.chosenClass, true); @@ -767,7 +768,7 @@ } _disableDraggable(dragEl); - dragEl.style.willChange = ''; + dragEl.style['will-change'] = ''; // Remove class's _toggleClass(dragEl, this.options.ghostClass, false);