aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorPaul Bakaus <paul.bakaus@googlemail.com>2008-11-21 14:01:44 +0000
committerPaul Bakaus <paul.bakaus@googlemail.com>2008-11-21 14:01:44 +0000
commit4b2a73e2b2d54d95b3536392a46bdac5e0db1a06 (patch)
tree79c4ad36d33cd9b9b09cfa279610558ab976cbe5 /ui
parentfa38ac52ab475696109ad6d9b3cbe368e3970670 (diff)
downloadjquery-ui-4b2a73e2b2d54d95b3536392a46bdac5e0db1a06.tar.gz
jquery-ui-4b2a73e2b2d54d95b3536392a46bdac5e0db1a06.zip
draggable: the snap events 'release' and 'snap' now both have valid mousemove events attached.
Diffstat (limited to 'ui')
-rw-r--r--ui/ui.draggable.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/ui.draggable.js b/ui/ui.draggable.js
index 30824552b..abf1cddbc 100644
--- a/ui/ui.draggable.js
+++ b/ui/ui.draggable.js
@@ -625,7 +625,7 @@ $.ui.plugin.add("draggable", "snap", {
//Yes, I know, this is insane ;)
if(!((l-d < x1 && x1 < r+d && t-d < y1 && y1 < b+d) || (l-d < x1 && x1 < r+d && t-d < y2 && y2 < b+d) || (l-d < x2 && x2 < r+d && t-d < y1 && y1 < b+d) || (l-d < x2 && x2 < r+d && t-d < y2 && y2 < b+d))) {
- if(inst.snapElements[i].snapping) (inst.options.snap.release && inst.options.snap.release.call(inst.element, null, $.extend(inst.uiHash(), { snapItem: inst.snapElements[i].item })));
+ if(inst.snapElements[i].snapping) (inst.options.snap.release && inst.options.snap.release.call(inst.element, event, $.extend(inst.uiHash(), { snapItem: inst.snapElements[i].item })));
inst.snapElements[i].snapping = false;
continue;
}
@@ -655,7 +655,7 @@ $.ui.plugin.add("draggable", "snap", {
}
if(!inst.snapElements[i].snapping && (ts || bs || ls || rs || first))
- (inst.options.snap.snap && inst.options.snap.snap.call(inst.element, null, $.extend(inst.uiHash(), { snapItem: inst.snapElements[i].item })));
+ (inst.options.snap.snap && inst.options.snap.snap.call(inst.element, event, $.extend(inst.uiHash(), { snapItem: inst.snapElements[i].item })));
inst.snapElements[i].snapping = (ts || bs || ls || rs || first);
};