How to enable dblclick event on elements which was binded with JQuery UI Selectable plugin?

后端 未结 6 820
感动是毒
感动是毒 2020-12-19 06:21

In my case,I have an UL with JQuery UI Selectable plugin applied,but at the same time ,I want the item witch was binded with selectable plugin was

6条回答
  •  情书的邮戳
    2020-12-19 06:55

    You just need to set the distance to a number > 0 to register clicks and double-clicks.

    $("#selectable").selectable({
        distance: 1
    });
    

    See http://forum.jquery.com/topic/selectable-dosn-t-fire-click-event

提交回复
热议问题