draggable: fixed snap

This commit is contained in:
Paul Bakaus 2009-01-27 19:17:28 +00:00
parent e26951da7f
commit 84a0971aab

View File

@ -662,8 +662,8 @@ $.ui.plugin.add("draggable", "snap", {
}, },
drag: function(event, ui) { drag: function(event, ui) {
var inst = $(this).data("draggable"), o = i.options; var inst = $(this).data("draggable"), o = inst.options;
var d = i.options.snapTolerance; var d = o.snapTolerance;
var x1 = ui.absolutePosition.left, x2 = x1 + inst.helperProportions.width, var x1 = ui.absolutePosition.left, x2 = x1 + inst.helperProportions.width,
y1 = ui.absolutePosition.top, y2 = y1 + inst.helperProportions.height; y1 = ui.absolutePosition.top, y2 = y1 + inst.helperProportions.height;