document.addEventListener(“touchmove”,preventBehavior,false); - 防止我使用overflow:scroll; - 工作? [英] document.addEventListener("touchmove", preventBehavior, false); - prevents me using from using overflow: scroll; - work around?
问题描述
我使用phonegap构建ios应用程序,所以你不能移动窗口phonegap使用 document.addEventListener(touchmove,preventBehavior,false);
这是很好...但它也阻止我使用css overflow:scroll
/ p>
有没有一个工作arround,我可以让这两个仍然工作?是有一种方式,我可以加载在CSS的部分后的js,以便它覆盖它?或者我可以只应用 document.addEventListener(touchmove,preventBehavior,false);
到正文但不是其内容?
找到一个phonegap / cordova只有周围的dosnt需要使用 document.addEventListener第一个地方 - 进入你的xcode项目.. porject文件>支持文件> cordova.plist,然后在顶部更改'UIWebViewBounce'到NO。
来自这里
Im using phonegap to build an ios app, so that you cant move the window phonegap uses document.addEventListener("touchmove", preventBehavior, false);
which is fine... but it also prevent me from using the css overflow:scroll
on a section of text.
Is there a work arround that i can get both of these to still work ? is there a way i could load in the section of css after the js so that it overrides it ? or can i just apply the document.addEventListener("touchmove", preventBehavior, false);
to the body but not its content ?
Found a phonegap / cordova only work around that dosnt require you to use document.addEventListener("touchmove", preventBehavior, false);
in the first place - go into your xcode project.. porject file > supporting files > cordova.plist then at the top change 'UIWebViewBounce' to NO.
from here
这篇关于document.addEventListener(“touchmove”,preventBehavior,false); - 防止我使用overflow:scroll; - 工作?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!