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,10 +652,15 @@ 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 !== '') {
|
||||||
|
if (this._fx[prop].wc === 'webkitTransform') {
|
||||||
|
wc.push('transform', '-webkit-transform');
|
||||||
|
|
||||||
|
} else {
|
||||||
wc.push(this._fx[prop].wc);
|
wc.push(this._fx[prop].wc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
for (i = 0; i < this._el.length; i++) {
|
for (i = 0; i < this._el.length; i++) {
|
||||||
// ******** DOM WRITE ****************
|
// ******** DOM WRITE ****************
|
||||||
|
Reference in New Issue
Block a user