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,7 +652,12 @@ export class Animation {
if (addWillChange) {
for (prop in this._fx) {
if (this._fx[prop].wc !== '') {
wc.push(this._fx[prop].wc);
if (this._fx[prop].wc === 'webkitTransform') {
wc.push('transform', '-webkit-transform');
} else {
wc.push(this._fx[prop].wc);
}
}
}
}