]> source.dussan.org Git - jquery-ui.git/commitdiff
sortable: changed default distance to 1
authorPaul Bakaus <paul.bakaus@googlemail.com>
Tue, 24 Jun 2008 14:29:29 +0000 (14:29 +0000)
committerPaul Bakaus <paul.bakaus@googlemail.com>
Tue, 24 Jun 2008 14:29:29 +0000 (14:29 +0000)
tests/visual/draggable.html
ui/ui.sortable.js

index 342265c079ea95bb568601c2218d6dfcd5351b95..781e6e4cbef5437663f8b2dfac77bdea8b0f91e4 100644 (file)
@@ -8,7 +8,7 @@
        <script type="text/javascript" src="../../ui/ui.draggable.js"></script>\r
        <script type="text/javascript">\r
        $(function() {\r
-               $("#draggable").draggable();\r
+               $("#draggable").draggable({ handle: "span", drag: function() { console.log(1); } });\r
        });\r
        </script>\r
 </head>\r
 <ul class="plugins">\r
 <li>\r
        Draggable\r
-       <div id="draggable"></div>\r
+       <div id="draggable"><span>Handle</span></div>\r
+       <div style="height: 1000px;"></div>\r
 </li>\r
 </ul>\r
 \r
+<div style="height: 1000px;"></div>\r
 </body>\r
 </html>\r
index 17696100f63bbee339c40ad7258deb0f41184d90..8d5c67c4bec80463fe778356d5e826cffe85dbcc 100644 (file)
@@ -593,7 +593,7 @@ $.extend($.ui.sortable, {
        defaults: {
                helper: "clone",
                tolerance: "guess",
-               distance: 0,
+               distance: 1,
                delay: 0,
                scroll: true,
                scrollSensitivity: 20,