问题描述
我使用JQueryMobile制作了一个应用程序,遇到了一个问题,我无法在互联网上的其他任何地方找到它。
I'm making an app with JQueryMobile and have come across a problem that I cannot find anywhere else on the internet.
我的应用程序有一个大的列表,在我实现JQMobile之前,我可以滚动我想要的那么快。我可以刷我的手指快,我想要的。我可以翻页,它会继续滚动。
My app has a large list, and before I implemented JQMobile, I could scroll as fast as I wanted. I could swipe my finger as fast as I wanted. I could fling the page and it would keep scrolling.
现在我添加了JQMobile,有一个问题(它比一个完整的问题更烦人)。
在同一个列表中,除了JQmobile,没有其他添加,滚动是坏的。我必须滚动/轻拂更慢,我必须留下来。我不能逃脱它,以及我可以原来。这不只是在我的脑海里,因为我在两个不同的星系nexuses(一个已安装的原始应用程序,一个已安装的jqm应用程序)
Now that I added JQMobile, there's a problem (it's more annoying than a full problem). On that same list, with nothing else added except JQmobile, scrolling is bad. I have to scroll/flick slower, and I have to stay with it. I cannot fling it as well as I could originally. It's not just in my head because I'm flicking it on two different galaxy nexuses (One has the original app installed, one has the jqm app installed)
任何想法?
我的一个想法是JQMobile正在寻找滑动,当我试图滚动,所以它不滚动。 JQMobile是否检测到垂直滑动?
My one thought was that JQMobile was looking for swipes when I'm trying to scroll, so it doesn't scroll as well. Does JQMobile detect vertical swipes? If so, could that be the problem, and could it be disabled?
推荐答案
我有这个问题,删除阴影有帮助在我的情况下。
I had this same issue and removing drop shadows helped in my case.
/* Get rid of shadows for performance
.ui-bar-a
.ui-shadow,
.ui-btn-up-a,
.ui-btn-hover-a,
.ui-btn-down-a,
.ui-body-b,
.ui-btn-up-b,
.ui-btn-hover-b,
.ui-btn-down-b,
.ui-bar-c,
.ui-body-c,
.ui-btn-up-c,
.ui-btn-hover-c,
.ui-btn-down-c,
.ui-bar-c,
.ui-body-d,
.ui-btn-up-d,
.ui-btn-hover-d,
.ui-btn-down-d,
.ui-bar-d,
.ui-body-e,
.ui-btn-up-e,
.ui-btn-hover-e,
.ui-btn-down-e,
.ui-bar-e,
.ui-overlay-shadow,
.ui-shadow,
.ui-btn-active,
.ui-body-a {
text-shadow: none;
box-shadow: none;
-webkit-box-shadow: none;
}
这篇关于JQuery Mobile& Phonegap - 垂直滚动波动/更硬的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!