Comments (6)
可以尝试降低一下图片的分辨率和尺寸
from islider.
另外建议你去掉代码中的boundary = endTime - this.startTime > 300 ? boundary : 14;
试试,这是快速滑动的逻辑。后续我们会考虑是否将快速滑动作为一个可配置的选项。
from islider.
刚在微信浏览器端试了下(锤子t1手机),发现用最新版islider.js,偶尔出现滑动不响应的情况,和是否快速滑动没关系,替换成http://be-fe.github.io/iSlider/demo/ 上的islider.js后就没问题了,可否帮忙分析下是什么原因造成的不,移动端交互效果过于脆弱,有可能在滑动中多产生一次repaint就会造成很大影响。@xieyu33333
from islider.
这个和repaint没关系,是因为新版本加入了和原生纵向滚动的适配,touchmove的时候横向滑动距离 - 纵向滑动距离 > 10px时才会执行e.preventDefault(),但是在Android4.4以上系统内核浏览器,以及chrome浏览器上,如果没有触发e.preventDefault,那么一旦浏览器检测到滑动动作,就会触发touchcancle。而老版本没有做和纵向滚动的兼容,所以没问题,如果你不需要scroll滚动条,可以在touchmove和touchstart的地方加上e.preventDefault()
from islider.
试了下果然是这个问题,感谢指正@xieyu33333
from islider.
感谢反馈,后续我再尝试做一些调整,解决这个问题。
from islider.
Related Issues (20)
- 页面刚刚渲染出来,卡着的怎么办? HOT 2
- 请问方向怎么控制,比如我想让普通的normal效果是从左往右的怎么设置呢。默认是从右往左的动画效果
- 请问,我将bootstrap的container整体装入了左右滑动,但是container内部的上下滑动失效了怎么办 HOT 1
- 横竖屏,会有问题,是因为我移动端,用的rem布局,此时需要赋值height,问题解决了
- Bug: 手指按下 页面背景色会变化
- 建议增加onerror处理 HOT 1
- 发现bug一枚,pause()方法有问题的
- zoompic插件中通过对图片双击或双指放大,在控制台报错
- iSlids插件,antd项目,new iSlids 导致生成多个UI节点,外部使用判断控制了访问限制,所以节点生成这里应该是插件内部导致的,有没有什么解决办法 HOT 1
- webapp开发中,webview预加载时图片叠加问题。 HOT 1
- 建议:可否添加free Mode HOT 1
- 修复plugin在使用npm安装时无法引用的bug
- slideIndex variable HOT 1
- 请问一下iSlider怎么排版按从右往左排列
- 有图片分页功能吗 HOT 5
- 如何设置轮播图(自动播放)每一页不同的时间间隔
- slideChanged 不管用 HOT 2
- bug:当点击内容里的事件时,插件不自动滚动了
- 当content为HTMLElement且数据长度为2,如果其中一个不为img,在轮播时会出现整张空白轮播图
- Errorr
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from islider.