mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-24 14:58:36 +08:00
fix(animation): correctly apply will-change: transform
This commit is contained in:
@ -652,7 +652,12 @@ export class Animation {
|
|||||||
if (addWillChange) {
|
if (addWillChange) {
|
||||||
for (prop in this._fx) {
|
for (prop in this._fx) {
|
||||||
if (this._fx[prop].wc !== '') {
|
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);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user