aboutsummaryrefslogtreecommitdiffstats
path: root/ui/ui.draggable.js
diff options
context:
space:
mode:
authorEduardo Lundgren <eduardolundgren@gmail.com>2009-01-24 01:36:22 +0000
committerEduardo Lundgren <eduardolundgren@gmail.com>2009-01-24 01:36:22 +0000
commit16a6bf3dd8ec470a446e1b2044a2de81bce1f83b (patch)
tree50be1e7a7408347db43f6a60377497db29e7d314 /ui/ui.draggable.js
parent53c9696c29ee42507f8780f51b67bc3505b46f19 (diff)
downloadjquery-ui-16a6bf3dd8ec470a446e1b2044a2de81bce1f83b.tar.gz
jquery-ui-16a6bf3dd8ec470a446e1b2044a2de81bce1f83b.zip
Remove trailing spaces
Diffstat (limited to 'ui/ui.draggable.js')
-rw-r--r--ui/ui.draggable.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/ui/ui.draggable.js b/ui/ui.draggable.js
index 71cebbc48..f24e7ab8a 100644
--- a/ui/ui.draggable.js
+++ b/ui/ui.draggable.js
@@ -612,7 +612,7 @@ $.ui.plugin.add("draggable", "scroll", {
else if(event.pageY - i.overflowOffset.top < o.scrollSensitivity)
i.scrollParent[0].scrollTop = scrolled = i.scrollParent[0].scrollTop - o.scrollSpeed;
}
-
+
if(!o.axis || o.axis != 'y') {
if((i.overflowOffset.left + i.scrollParent[0].offsetWidth) - event.pageX < o.scrollSensitivity)
i.scrollParent[0].scrollLeft = scrolled = i.scrollParent[0].scrollLeft + o.scrollSpeed;
@@ -621,21 +621,21 @@ $.ui.plugin.add("draggable", "scroll", {
}
} else {
-
+
if(!o.axis || o.axis != 'x') {
if(event.pageY - $(document).scrollTop() < o.scrollSensitivity)
scrolled = $(document).scrollTop($(document).scrollTop() - o.scrollSpeed);
else if($(window).height() - (event.pageY - $(document).scrollTop()) < o.scrollSensitivity)
scrolled = $(document).scrollTop($(document).scrollTop() + o.scrollSpeed);
}
-
+
if(!o.axis || o.axis != 'y') {
if(event.pageX - $(document).scrollLeft() < o.scrollSensitivity)
scrolled = $(document).scrollLeft($(document).scrollLeft() - o.scrollSpeed);
else if($(window).width() - (event.pageX - $(document).scrollLeft()) < o.scrollSensitivity)
scrolled = $(document).scrollLeft($(document).scrollLeft() + o.scrollSpeed);
}
-
+
}
if(scrolled !== false && $.ui.ddmanager && !o.dropBehaviour)
@@ -715,9 +715,9 @@ $.ui.plugin.add("draggable", "snap", {
$.ui.plugin.add("draggable", "stack", {
start: function(event, ui) {
-
+
var o = $(this).data("draggable").options;
-
+
var group = $.makeArray($(o.stack.group)).sort(function(a,b) {
return (parseInt($(a).css("zIndex"),10) || o.stack.min) - (parseInt($(b).css("zIndex"),10) || o.stack.min);
});
@@ -727,7 +727,7 @@ $.ui.plugin.add("draggable", "stack", {
});
this[0].style.zIndex = o.stack.min + group.length;
-
+
}
});