当前位置:网站首页>Better Scroll Y上下滚动无法上拉滚动解决办法
Better Scroll Y上下滚动无法上拉滚动解决办法
2022-08-09 06:53:00 【wpj130】
场景问题:今天使用BS,发现一个奇怪的问题,我设置为Y轴垂直滚动,但是下拉下来之后无法上拉查看上面的内容了。。。。
解决办法:[bindToWrapper]设置为[true], 做了这个设置之后可以了。。。原因不明
// 实例未初始化 则进行初始化
this.filterBs = new BScroll('#filterBs', {
scrollY: true,
bindToWrapper: true // 设置这个即可解决。。说明:作用:move 事件通常会绑定到 document 上而不是滚动的容器上,当移动的过程中光标或手指离开滚动的容器滚动仍然会继续,这通常是期望的。当然你也可以把 move 事件绑定到滚动的容器上,bindToWrapper 设置为 true 即可,这样一旦移动的过程中光标或手指离开滚动的容器,滚动会立刻停止。
});
有问题欢迎加QQ群讨论:115658205
边栏推荐
猜你喜欢
报错:FSADeprecationWarning: SQLALCHEMY_TRACK_MODIFICATIONS adds significant overhead and will be disab
按图搜索1688商品接口(item_search_img-按图搜索1688商品(拍立淘接口)代码对接教程
Use of PlantUML plugin in idea
图论,二叉树,dfs,bfs,dp,最短路专题
pycharm环境包导入到另外一个环境
排序第三节——交换排序(冒泡排序+快速排序+快排的优化)(5个视频讲解)
虚拟机网卡报错:Bringing up interface eth0: Error: No suitable device found: no device found for connection
makefile记录
95后,刚工作2-3年就年薪50W+ ,才发现打败我们的,从来不是年龄···
ByteDance Interview Questions: Mirror Binary Tree 2020
随机推荐
CMake中INSTALL_RPATH与BUILD_RPATH问题
2022年7月小结
Reverse Engineering
详解C语言中的wait()函数和waitpid()函数
P7 Alibaba Interview Questions 2020.07 Sliding Window Algorithm (Alibaba Cloud Interview)
Explain the wait() function and waitpid() function in C language in detail
排序第一节——插入排序(直接插入排序+希尔排序)(视频讲解26分钟)
jvm线程状态
日期处理,字符串日期格式转换
Flask failed to create database without error
按图搜索1688商品接口(item_search_img-按图搜索1688商品(拍立淘接口)代码对接教程
Common Oracle Commands
bzoj 5333 [Sdoi2018]荣誉称号
Singleton DCL (double check the lock) full han mode and the hungry
shardingsphere data sharding configuration item description and example
分布式理论
Introduction and use of BeautifulSoup4
leetcode 之盛水问题
TCP segment of a reassembled PDU
网络学习总结