Comments (3)
印象中是为了兼容Windows Phone才加的_moveResultX和_moveResultY。
为了判断是横着滚动还是竖着滚动。
看来以后代码要写仔细了,太容易遗忘了。
from swipeslide.
_moveX和_moveResultX都是触摸距离,_moveResultX后面会改变,而_moveX不变。
_moveX用作是IE里的判断,如果触摸距离小,不触发超链接等操作。
$this.on('click',function(){
return allowSlideClick;
});
// 解决IE滑动触发click
if(Math.abs(_moveX) < 5){
allowSlideClick = true;
}
setTimeout(function(){
allowSlideClick = true;
},100);
from swipeslide.
非常感谢!
from swipeslide.
Related Issues (18)
- 建议加个bower.json发布到bower上 HOT 2
- lazyload报错 HOT 2
- 配置参数不可扩展除ul li 之外的其他dom结构 HOT 4
- 为什么不能调整图片的高度呀?
- Is need css style in this plugin? HOT 1
- 手指滑动导致自动滑动失效 HOT 4
- 滑动中 AJAX HOT 7
- 轮播图在jQuery mobile框架中使用的问题 HOT 1
- 针对ie设置touch-action属性
- ios的微信下,轮播时存在bug HOT 3
- 可以通过索引来指定初始加载第几张图片不? HOT 2
- 动态元素bug HOT 2
- page 里面的元素如果超出一屏,横向滚动无效. HOT 1
- 手机翻转屏幕横屏的时候图片有时候平行放两张 HOT 3
- 2.0 到3.0 是不是有broken change啊 HOT 5
- 轮播a 标签跳转bug HOT 1
- README.md 文件上的一些问题 HOT 1
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 swipeslide.