[bugfix] Swipe: use translate2d to aviod iOS11 crash bug (#518)

This commit is contained in:
neverland
2018-01-08 19:57:07 +08:00
committed by GitHub
parent 44b1ede990
commit 0b59725d0a
3 changed files with 3 additions and 3 deletions

View File

@@ -85,7 +85,7 @@ export default create({
paddingLeft: this.width + 'px',
width: (this.count + 2) * this.width + 'px',
transitionDuration: `${this.currentDuration}ms`,
transform: `translate3d(${this.offset}px, 0, 0)`
transform: `translate(${this.offset}px, 0)`
};
},