摘要: 增加自定义滑动宽度iScroll框架默认滑动的宽度为当前获取对象的宽度,当在形如400px宽的对象里有4张图片,我们每次只希望滑动100px的宽度暨一张图片,做如下修改:1.在that.options里增加一个配置项getScrollW : “”,这里默认为空2.在refresh方法里找到that.wrapperW = that.wrapper.clientWidth;并修改为that.wrapperW = that.options.getScrollW ? that.options.getScrollW : that.wrapper.clientWidth;3:在refresh方法里找到th 阅读全文
posted @ 2012-08-23 23:45 Anjey 阅读(503) 评论(0) 推荐(0) 编辑