iScroll内部textarea滑动不了bug
2015-08-13 16:30
363 查看
原文链接:https://www.geek-share.com/detail/2650454600.html
把document.addEventListener('touchmove', function (e) { e.preventDefault(); }, false);改为
//阻止默认行为
$(document).on("touchstart touchmove mousedown mousemove",function(event){
var tag = $(event.target).parents()[0].tagName;
var thistag = event.target.tagName;
if ( tag != "A" && tag != "INPUT" && tag != "TEXTAREA" && tag != "SELECT" && thistag != "A" && thistag != "INPUT" && thistag != "TEXTAREA" && thistag != "SELECT" )
{
event.preventDefault();
}
})
转载于:https://www.cnblogs.com/anyaran/p/4727697.html
相关文章推荐
- iScroll内部textarea滑动不了bug
- 解决内部ViewPager不能向左滑动的bug
- iscroll滑动区域内的div onclick事件单击一次触发了两次bug解决
- 使用iscroll滑动区域内的div onclick事件单击一次触发了两次问题的解决
- 解决ViewFlow在Scrollview下滑动不灵敏的BUG(解决viewflow与父控件的滑动事件冲突问题)
- button标签内部嵌套div时的样式有bug(暂定的解决方案)
- 关于IOS input、textarea position:fixed 在focus时软键盘弹起错位bug的解决方案
- 解决滑动时不触发touchend事件的bug
- 2345好压内部查看器编辑log4.properties引起的linux下无法生成日志文件的Bug
- iscroll在手机上滑动不流畅,很卡,如何解决?
- fix bug滑动视图 动画卡ui
- Webx RPC 内部重定向的bug
- 偶遇RecyclerView内部Bug
- jquery的clone方法bug的修复select,textarea的值丢失
- TabLayout的一个bug?左右来回滑动几次导航条崩溃
- [置顶] v5.40总结-自以为是窝藏bug||团队内部有话直说
- react-native init xxx 出现 “yarn” 和 “npm” 不是内部指令的bug
- 3.3号随笔 手机端页面适应设备,iscroll实现元素滑动
- 自定义控件(视图)2期笔记13:View的滑动冲突之 内部拦截法
- BUG笔记:Android原生浏览器不认负百分数margin致Foundation Orbit往右滑动动画出错