当前位置:网站首页>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
边栏推荐
- P6阿里机试题之2020 斐波那契数
- 2022-08-08: Given an array arr, it represents the height of the missiles that will appear in order from morning to night.When the cannon shoots missiles, once the cannon is set to shoot at a certain h
- 什么是分布式事务
- ByteDance Interview Questions: Mirror Binary Tree 2020
- 半导体新能源智能装备整机软件系统方案设计
- io.lettuce.core。RedisCommandTimeoutException命令超时
- C语言的内置宏(定义日志宏)
- AD的library中 库文件后缀有.intlib .schlib .pcblib 的区别
- 子路由及路由出口配置
- 无重复的字符的最长子串
猜你喜欢
高项 03 项目立项管理
当酷雷曼VR直播遇上视频号,会摩擦出怎样的火花?
Variable used in lambda expression should be final or effectively final报错解决方案
半导体新能源智能装备整机软件系统方案设计
Flask failed to create database without error
C语言的内置宏(定义日志宏)
分布式事务产生的原因
CMake中INSTALL_RPATH与BUILD_RPATH问题
The water problem of leetcode
Altium designer software commonly used the most complete package library, including schematic library, PCB library and 3D model library
随机推荐
MongDb的查询方式
使用百度EasyDL实现智能垃圾箱
ByteDance Written Exam 2020 (Douyin E-commerce)
dp学习笔记
The Integer thread safe
简单工厂模式
常见的分布式事务解决方案
子路由及路由出口配置
Zero shift of leetcode
idea中PlantUML插件使用
像天才一样思考:如何培养自己的创造力?
为什么以太网无法接收大于1500字节的数据包?
事务总结
Variable used in lambda expression should be final or effectively final报错解决方案
The JVM thread state
网络学习总结
C language implements sequential stack and chain queue
BeautifulSoup4的介绍与使用
The division principle summary within the collection
shardingsphere data sharding configuration item description and example