This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This fork of single_double_click is safe for .draggable()/.droppable()/.sortable(). It adds a second timer to keep track of drag time. | |
Code: | |
$(function(){ | |
$("button").singleDoubleClick({ | |
singleCallback: function(){ alert("You clicked once") }, | |
doubleCallback: function(){ alert("You clicked twice") } | |
}); |