Authored by 陈峰

will-change

... ... @@ -82,7 +82,7 @@ export default {
panstart() {
this.originY = 0 - this.currentIndex * this.itemHeight;
this.transitionStyle = '';
this.selectStyle['will-change'] = 'transform';
this.selectStyle['will-change'] = 'true';
this.transform();
},
panmove(e) {
... ...
... ... @@ -37,7 +37,7 @@ export default {
left: 0;
bottom: 0;
z-index: 999;
will-change: transform;
will-change: true;
transition-duration: 280ms;
}
.search-slider-enter-active {
... ...
... ... @@ -134,7 +134,7 @@ export default {
}
.home-slider-enter-active, .home-slider-leave-active {
will-change: transform;
will-change: true;
transition-duration: 280ms;
}
.home-slider-enter-active {
... ...
... ... @@ -82,7 +82,7 @@ export default {
panstart() {
this.originY = 0 - this.currentIndex * this.itemHeight;
this.transitionStyle = '';
this.selectStyle['will-change'] = 'transform';
this.selectStyle['will-change'] = 'true';
this.transform();
},
panmove(e) {
... ...