better-scroll
better-scroll copied to clipboard
:scroll: inspired by iscroll, and it supports more features and has a better scroll perfermance
### What problem does this feature solve? 水平方向滚动加载数据,左滑或右滑到底触发事件,然后加载新的数据。 现有组件好像只支持垂直方向的pullingup和pullingdown事件监听,水平方向左右滚动的时候没有对应的事件 ### What does the proposed API look like? 。
使用scrollbar插件的customElements属性自定义滚动条时,我想根据容器高度,和滚动高度,计算出滚动条的高度,而不是通过css写死一个高度;
### Version undefined ### Reproduction link [https://ustbhuangyi.github.io/better-scroll](https://ustbhuangyi.github.io/better-scroll) ### Steps to reproduce 使用iphone设备,滑动时,手动触摸屏幕让滑动停止,会有抖动现象 测试的设备有iphone7、iphone8、iphonex,系统是ios11 复现的话,用iphone访问https://ustbhuangyi.github.io/better-scroll/#/examples/goods-list/en ### What is expected? 不应该出现抖动现象 ### What is actually happening? 手动停止滑动时出现了抖动现象
### Version 2.0.0-beta.2 ### Reproduction link [https://gist.github.com/sylingd/9c72c096ffa2651059a317cc7a8eea42](https://gist.github.com/sylingd/9c72c096ffa2651059a317cc7a8eea42) ### Steps to reproduce 无限loading,浏览器会卡住,简单看了一下infinity源代码发现只会判断scrollY,不会管scrollX……
 双层嵌套初始化时click和tap都设置true,会触发两次click事件
### What problem does this feature solve? 类似饿了么首页那样的布局,头部占了较大的空间,往下滚动是选项卡,选项卡可以左右滑动切换,而且每个选项卡之内应该还有一个滚动层;以前这种布局体验不好,没办法实现左右滑动切换,切换后又只能重头再开始浏览,因为选项卡里的内容高度是不一样,如果在选项卡里嵌滚动层,又跟外层的滚动层互相影响;我尝试监听scroll事件,再配合enable,disable方法,但效果不理想 ### What does the proposed API look like? nested-scroll插件里新增一个滚动优先级的选项,外层滚动完,内层才能滚动
### Version 2.4.2 ### Reproduction link [https://output.jsbin.com/yapugiquyo](https://output.jsbin.com/yapugiquyo) ### Steps to reproduce 在1w 的文档中,使用better-scroll滚动以及手势缩放,在android手机上,滚动到最后一页,手势放大,在zoom max=2.5的时候(此处与max值无关,只是示例),大概放大到2.1的时候,页面就会发生空白。 目前发现有问题的浏览器为 RedmiK40 MIUI13.0.3 此系统下小米系统浏览器,微信内置浏览器,qq浏览器,uc浏览器均有此类问题,钉钉浏览器,支付宝打开均ok,无法确认是不是浏览器的问题,还是使用better-scroll的方式不对。 ### What is expected? 手势放大页面能够正常显示 ### What is actually happening? 手势放大到一定值的时候页面空白,无法显示内容
尝试修复鼠标右键的拖拽行为。
### Version 2.4.2 ### Reproduction link [https://jsfiddle.net/c8Ldrbqy/4/](https://jsfiddle.net/c8Ldrbqy/4/) ### Steps to reproduce The mouse wheel slides down to work normally, slides up to not work, and no error is reported from...
内层滚动盒子内容不够撑开的情况,手指接触的位置是在内层滚动盒子里面,就会滚动不了外层的盒子