fix(animation): correctly apply will-change: transform

This commit is contained in:
Adam Bradley
2016-06-19 10:43:12 -05:00
parent 2d680896e7
commit a1223da08c

View File

@ -652,10 +652,15 @@ export class Animation {
if (addWillChange) {
for (prop in this._fx) {
if (this._fx[prop].wc !== '') {
if (this._fx[prop].wc === 'webkitTransform') {
wc.push('transform', '-webkit-transform');
} else {
wc.push(this._fx[prop].wc);
}
}
}
}
for (i = 0; i < this._el.length; i++) {
// ******** DOM WRITE ****************