diff --git a/src/scroll/index.wc b/src/scroll/index.wc index cdca30e..1422886 100644 --- a/src/scroll/index.wc +++ b/src/scroll/index.wc @@ -137,7 +137,7 @@ export default class Scroll { return this.__BOX__.scrollLeft } - set scrollLeft(val) { + set scrollLeft(n) { n = +n if (n === n) { var { sw, ow, xw } = this.props