-
Notifications
You must be signed in to change notification settings - Fork 449
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: 页面无法正常滚动 #375
Comments
设置fixPage属性为false貌似可以 var slider = new iSlider(ele, list, {
isAutoplay: 1,
isLooping: 1,
isOverspread: 1,
animateTime: 800,
plugins: [ ['dot', { locate: 'relative' }] ],
fixPage: false
//animateType: 'flow'
}); 默认行为的取消主要在这行代码: |
我试了下,把fixPage设为false的确可以了; 还有点小瑕疵:
不知道这样子有没有什么问题 |
这里没有特别进行处置,其实这个功能考虑过,但是会出现要求纵向切换并且纵向滚动的场景,╮(╯▽╰)╭ 无解的,所以留给fixPage===false时,自行添加判断吧 |
当使用animateType: 'flow'的时候,没法定义一个可以scroll的content啊。不然根本无法滚动,若设置fixPage==false的话,flow的动画就没了啊,求助 |
上面有表示过,touch的触发动作可以自行解决的,框架能做的只有“不阻止默认事件”而已。况且,根据一般的经验,滑动和内容scroll的方向肯定是不同的,很好判断,如果相同的话... ╮(╯▽╰)╭ |
touchmove的时候,阻止了默认事件
当手指按在元素上时,无法正常滚动页面
The text was updated successfully, but these errors were encountered: