IOS下双击背景, touchmove, 阻止页面背景scroll.
2024-10-19 01:29:26
ios prevent dblclick(tap) page scroll
html add:("minimal-ui" is very important)
<meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,usker-scalable=no,minimal-ui">
eg: 以lightbox_me.js举例说明
var opt = {
centered: true,
zIndex: 99999,
overlaySpeed: 1,
lightboxSpeed: 1,
preventScroll: true,
showOverlay: true,
onClose: function(){
$('.js_lb_overlay').remove();
$('section').unbind('touchmove');//$('section') is page's element
},
onLoad: function(){
$('section').on('touchmove', function (e) {
e.preventDefault();
});
$('.js_lb_overlay').on('touchstart', function (e) {// touchstart!!!
e.preventDefault();
});
},
closeSelector:'.js_close',
overlayCSS:{background: '#000000', opacity:0.7}
};
最新文章
- 几种jQuery 实现无限滚动的插件
- 通过开户银行账号查询客商名称 sql
- SQL——查询考试
- MFC 相关文件夹、文件操作
- AngularJS自定义指令(Directives)在IE8下的一个坑
- ubuntu将默认中文改成英文
- ASP.NET 之 检测到在集成的托管管道模式下不适用的ASP.NET设置
- 安卓开发错误:The type android.support.v4.app.TaskStackBuilder$SupportParentable cannot be resolved.
- 【VS2015正式版下载】Visual Studio 2015 正式版开放下载 Visual Studio 2015 神key
- 百度复制SQL语句
- Handler.removeMessages的作用,有时候为什么一定要先remove一下呢
- Android Studio 或 IntelliJ IDEA获取数字签名的方法
- Hadoop(十一)Hadoop IO之序列化与比较功能实现详解
- 服务器Windows 登录 出现401 错误
- 如何解决分配到Autoconfiguration IPV4 地址
- 【微信小程序——开发步骤1】
- POJ 3278 抓奶牛(BFS入门题)
- CentOS7+Nginx配置Tomcat负载均衡环境
- gitlab的md文件内使用锚点
- 解决jetty runner锁定js
热门文章
- (转载)不能启动虚拟机 Unable to open kernel device ";\\.\Global\vmx86
- Go语言的学习
- java基础(八) 面向对象(三)
- UIColor的使用
- 《University Calculus》-chape10-向量和空间几何学-叉积
- codeforce 230D Dijsktra
- hdu1026 Ignatius and the Princess I (优先队列 BFS)
- jsp页面写入中文到mysql时出现了乱码(转)
- ArrayList and LinkedList
- Cocos2d-x 3.0 红孩儿私家必修 - 第二章 cpp-empty-test