Jquery mobile taphold事件可以';t绑定内部滚动视图

Jquery mobile taphold事件可以';t绑定内部滚动视图,jquery-mobile,cordova,scrollview,Jquery Mobile,Cordova,Scrollview,我正在使用PhoneGap和Jquery mobile开发iPhone应用程序。 我的问题是无法在scrollView中绑定事件taphold 我的应用程序具有如下结构: 标题: <script src="javascripts/jquery.mobile/jquery.mobile-1.0.1.js"></script> <script type="text/javascript" charset="utf-8" src="phonegap-1.3.0.j

我正在使用PhoneGap和Jquery mobile开发iPhone应用程序。 我的问题是无法在scrollView中绑定事件taphold

我的应用程序具有如下结构:

标题:

<script src="javascripts/jquery.mobile/jquery.mobile-1.0.1.js"></script>
    <script type="text/javascript" charset="utf-8" src="phonegap-1.3.0.js"></script>
    <script type="text/javascript" charset="utf-8" src="javascripts/jquery.easing.1.3.js"></script>
    <script type="text/javascript" charset="utf-8" src="javascripts/jquery.mobile.scrollview.js"></script>
    <script type="text/javascript" charset="utf-8" src="javascripts/scrollview.js"></script>
如果我删除了ScrollView,则事件对我有效。
滚动视图可能会阻止某些事件


有什么解决办法吗?或者您是否有办法监听longPress事件?

控制台中没有错误。但我跟踪到函数taphold//也处理taphold
$.event.special.tap={setup:function(){var thisObject=this,$this=$(thisObject);$this.bind(“vmousedown”,函数(event){if(event.which&&event.which!==1){return false;}var origTarget=event.target,origEvent=event.originalEvent,timer;函数clearTapTimer(){clearTimeout(timer);}
并且它永远不会进入vmousedown,我在Jquery.Mobile中编辑函数,它可以工作。在$.event.special.tap=function(){…}我编辑了setTimeout并更改为使用delay函数。该函数看起来像$(this).delay(750,function(){triggerCustomEvent(thisObject,“taphold”,“taphold”);});这可能是一个错误,我建议您使用jQM@user1140633提交一个错误/问题-您知道Jquery Mobile或Phonegap团队是否解决过这个问题吗?我在github上找不到这个问题。干杯
<div data-role="content" data-theme= "d" data-scroll= "true" style= "overflow: scroll;">
<ul data-role="listview" data-theme="b">
    <li data-icon="thumb-up"><a href="#" class="list-item">
        <img src="http://jquerymobile.com/test/docs/lists/images/album-ok.jpg"
        class = "ui-li-icon-small"></img>
        <div class="user_note">
            <p class="title-item">Broken Bells</p>
            <p class="detail-item">Broken Bells</p>
            <p class="time-past">5 minutes ago</p>
        </div>
        <p class="desc-item">this is descrition example test data this is descrition example test data </p>
    </a>
    </li>
...
</ul>
</div>
    $(".grid-item, .list-item").unbind('taphold');
    $(".grid-item, .list-item").bind("taphold", 
              function(event, ui){
              var icons = $(this).parent().parent().find(".ui-icon-thumb-up");
              icons.load("thumb_x_icons.html");
    });