Skip to content

Commit

Permalink
sortable: changed default distance to 1
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Bakaus committed Jun 24, 2008
1 parent 26c84c7 commit c73ccd5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions tests/visual/draggable.html
Expand Up @@ -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>
Expand All @@ -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>
2 changes: 1 addition & 1 deletion ui/ui.sortable.js
Expand Up @@ -593,7 +593,7 @@ $.extend($.ui.sortable, {
defaults: {
helper: "clone",
tolerance: "guess",
distance: 0,
distance: 1,
delay: 0,
scroll: true,
scrollSensitivity: 20,
Expand Down

0 comments on commit c73ccd5

Please sign in to comment.