sortable: changed default distance to 1

This commit is contained in:
Paul Bakaus 2008-06-24 14:29:29 +00:00
parent 26c84c7e9b
commit c73ccd5c71
2 changed files with 5 additions and 3 deletions

View File

@ -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>

View File

@ -593,7 +593,7 @@ $.extend($.ui.sortable, {
defaults: {
helper: "clone",
tolerance: "guess",
distance: 0,
distance: 1,
delay: 0,
scroll: true,
scrollSensitivity: 20,