Browse Source

Fixed animations when code is optimized with Angular build-optimizer

pull/1242/head
Yann Armelin 7 years ago committed by yarmelin
parent
commit
c1a94f2e55
  1. 6
      Sortable.js
  2. 3
      Sortable.min.js

6
Sortable.js

@ -55,6 +55,8 @@
moved,
forRepaintDummy,
/** @const */
R_SPACE = /\s+/g,
R_FLOAT = /left|right|inline/,
@ -91,7 +93,7 @@
savedInputChecked = [],
touchDragOverListeners = [],
alwaysFalse = function () { return false },
alwaysFalse = function () { return false; },
_autoScroll = _throttle(function (/**Event*/evt, /**Object*/options, /**HTMLElement*/rootEl) {
// Bug: https://bugzilla.mozilla.org/show_bug.cgi?id=505521
@ -888,7 +890,7 @@
+ (prevRect.top - currentRect.top) + 'px,0)'
);
target.offsetWidth; // repaint
forRepaintDummy = target.offsetWidth; // repaint
_css(target, 'transition', 'all ' + ms + 'ms');
_css(target, 'transform', 'translate3d(0,0,0)');

3
Sortable.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save