【问题标题】:jQuery Mobile Left/Right Swipe to Next Page not smoothjQuery Mobile 向左/向右滑动到下一页不流畅
【发布时间】:2013-05-09 10:30:17
【问题描述】:

我使用 jQuery Mobile 向左/向右滑动到下一页,但它不再流畅了。我必须触摸 2 次以上才能滑动下一页/上一页。 (我在 Galaxy samsung tab 上测试过,另一个应用程序在这个设备上运行流畅), 我的代码喜欢这个页面 http://designicu.com/jquery-mobile-swipe/

有没有办法解决这个问题? 谢谢,

【问题讨论】:

  • 如果答案有助于解决问题,我会建议您接受它作为正确答案。

标签: javascript jquery jquery-mobile swipe


【解决方案1】:

由于jquery mobile在页面转换的情况下不是很流畅。如果我们尝试关闭jquery mobile中的所有页面转换效果会更好。

$.mobile.defaultPageTransition = "none";

你也可以使用

 <style>
    /*** for jquerymobile page flicker that was happening ***/
    .ui-page {
        -webkit-backface-visibility: hidden;
    }
</style>

另外,请通过以下链接。您可能会得到您正在寻找的东西。 link1

link2

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2013-10-27
    • 1970-01-01
    • 2011-03-12
    • 1970-01-01
    • 2019-02-07
    • 2023-03-10
    • 1970-01-01
    相关资源
    最近更新 更多