mirror of
https://github.com/jquery/jquery-ui.git
synced 2024-11-21 11:04:24 +00:00
draggable: fixed snap
This commit is contained in:
parent
e26951da7f
commit
84a0971aab
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user