diff --git a/src/core/view/mixins/animation.js b/src/core/view/mixins/animation.js index 45ebc67535dca292930d2bc404f726b7757a4c84..7b71c926708aa79e0f492615b7095cc4ad85ca7d 100644 --- a/src/core/view/mixins/animation.js +++ b/src/core/view/mixins/animation.js @@ -35,7 +35,7 @@ function getStyle (action) { } else if (type.startsWith('translate')) { args = args.map(converPx) } - if (animateTypes2.indexOf(type)) { + if (animateTypes2.indexOf(type) >= 0) { args.length = 1 } transform.push(`${type}(${args.join(',')})`)