Browse Source

rewritten hack "repaint" to prevent it from being removed by the buildOptimizer in Angular 6+

pull/1340/head
Dmitriy Kovtun 7 years ago
parent
commit
5622f53080
  1. 8
      Sortable.js

8
Sortable.js

@ -55,8 +55,6 @@
moved,
forRepaintDummy,
/** @const */
R_SPACE = /\s+/g,
R_FLOAT = /left|right|inline/,
@ -899,7 +897,7 @@
+ (prevRect.top - currentRect.top) + 'px,0)'
);
forRepaintDummy = target.offsetWidth; // repaint
this._repaint(target);
_css(target, 'transition', 'all ' + ms + 'ms');
_css(target, 'transform', 'translate3d(0,0,0)');
@ -913,6 +911,10 @@
}
},
_repaint: function(target) {
return target.offsetWidth;
},
_offUpEvents: function () {
var ownerDocument = this.el.ownerDocument;

Loading…
Cancel
Save