Browse Source

Merge pull request #1242 from Yqnn/master

Fixed animations when code is optimized with Angular build-optimizer
pull/1247/merge
Lebedev Konstantin 7 years ago committed by GitHub
parent
commit
9b52503642
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      Sortable.js
  2. 3
      Sortable.min.js

8
Sortable.js

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

3
Sortable.min.js vendored

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