Browse Source

willChange -> will-change

will-change
Lebedev Konstantin 9 years ago
parent
commit
d347d2d6ce
  1. 5
      Sortable.js

5
Sortable.js

@ -329,6 +329,8 @@
nextEl = dragEl.nextSibling; nextEl = dragEl.nextSibling;
activeGroup = options.group; activeGroup = options.group;
dragEl.style['will-change'] = 'transform';
dragStartFn = function () { dragStartFn = function () {
// Delayed drag has been triggered // Delayed drag has been triggered
// we can re-enable the events: touchmove/mousemove // we can re-enable the events: touchmove/mousemove
@ -336,7 +338,6 @@
// Make the element draggable // Make the element draggable
dragEl.draggable = true; dragEl.draggable = true;
dragEl.style.willСhange = 'transform';
// Chosen item // Chosen item
_toggleClass(dragEl, _this.options.chosenClass, true); _toggleClass(dragEl, _this.options.chosenClass, true);
@ -767,7 +768,7 @@
} }
_disableDraggable(dragEl); _disableDraggable(dragEl);
dragEl.style.willChange = ''; dragEl.style['will-change'] = '';
// Remove class's // Remove class's
_toggleClass(dragEl, this.options.ghostClass, false); _toggleClass(dragEl, this.options.ghostClass, false);

Loading…
Cancel
Save