Skip to content
Permalink
Browse files

draggable: fixed snap

  • Loading branch information
Paul Bakaus
Paul Bakaus committed Jan 27, 2009
1 parent e26951d commit 84a0971aab8756f8886b15ee3c6e281c2e86d3aa
Showing with 2 additions and 2 deletions.
  1. +2 −2 ui/ui.draggable.js
@@ -662,8 +662,8 @@ $.ui.plugin.add("draggable", "snap", {
},
drag: function(event, ui) {

var inst = $(this).data("draggable"), o = i.options;
var d = i.options.snapTolerance;
var inst = $(this).data("draggable"), o = inst.options;
var d = o.snapTolerance;

var x1 = ui.absolutePosition.left, x2 = x1 + inst.helperProportions.width,
y1 = ui.absolutePosition.top, y2 = y1 + inst.helperProportions.height;

0 comments on commit 84a0971

Please sign in to comment.
You can’t perform that action at this time.