Skip to content

Commit

Permalink
fix(animation): correctly apply will-change: transform
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdbradley committed Jun 19, 2016
1 parent 2d68089 commit a1223da
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/animations/animation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
}
}
Expand Down

0 comments on commit a1223da

Please sign in to comment.