mirror of
https://github.com/jquery/jquery-ui.git
synced 2025-01-07 20:34:24 +00:00
sortable: changed default distance to 1
This commit is contained in:
parent
26c84c7e9b
commit
c73ccd5c71
@ -8,7 +8,7 @@
|
||||
<script type="text/javascript" src="../../ui/ui.draggable.js"></script>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$("#draggable").draggable();
|
||||
$("#draggable").draggable({ handle: "span", drag: function() { console.log(1); } });
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
@ -17,9 +17,11 @@
|
||||
<ul class="plugins">
|
||||
<li>
|
||||
Draggable
|
||||
<div id="draggable"></div>
|
||||
<div id="draggable"><span>Handle</span></div>
|
||||
<div style="height: 1000px;"></div>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div style="height: 1000px;"></div>
|
||||
</body>
|
||||
</html>
|
||||
|
@ -593,7 +593,7 @@ $.extend($.ui.sortable, {
|
||||
defaults: {
|
||||
helper: "clone",
|
||||
tolerance: "guess",
|
||||
distance: 0,
|
||||
distance: 1,
|
||||
delay: 0,
|
||||
scroll: true,
|
||||
scrollSensitivity: 20,
|
||||
|
Loading…
Reference in New Issue
Block a user