Skip to content

Commit a1223da

Browse files
committed
fix(animation): correctly apply will-change: transform
1 parent 2d68089 commit a1223da

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/animations/animation.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -652,7 +652,12 @@ export class Animation {
652652
if (addWillChange) {
653653
for (prop in this._fx) {
654654
if (this._fx[prop].wc !== '') {
655-
wc.push(this._fx[prop].wc);
655+
if (this._fx[prop].wc === 'webkitTransform') {
656+
wc.push('transform', '-webkit-transform');
657+
658+
} else {
659+
wc.push(this._fx[prop].wc);
660+
}
656661
}
657662
}
658663
}

0 commit comments

Comments
 (0)