2014-10-29 39 views
0

我已經使用了jQuery UI移動庫並具有綁定到一個元素爲「taphold」下面的方法:「taphold」事件禁用上的文本框

  // Apply class to annotations details to initiate animation 
     $('.detailsDiv').on('taphold', function() 
     { 
      var openingID = $(this).parent().attr("annoID"); 
      var showControls = true; 
      if ($(".annoEditableTextArea.annoName").length > 0) 

       $('body').append(pThis._getBlackoutOverlay(id)); 
      } 
      else 
      { 
       $(this).off('mousedown'); 
       pThis.base.annotations._setAnnotationDetailsActive(openingID, showControls); 
      } 
     }); 

此掛鉤事件就好了。但是,如果我在'taphold'事件未觸發後點擊此處的文本框,則在iOS Safari中。我試圖重新貼上一個文本框沒有聚焦的事件,但仍然沒有運氣。

有沒有人有類似這種行爲的經歷?

非常感謝

回答