Bug in draggable snapping code

Bug in draggable snapping code


Hi,
In the draggable snapping code, inside the drag function in lines
434-437 and 447-450 , "20" must be changed to "d":
var ts = Math.abs(t - y2) <= 20;
var bs = Math.abs(b - y1) <= 20;
var ls = Math.abs(l - x2) <= 20;
var rs = Math.abs(r - x1) <= 20;
and
var ts = Math.abs(t - y1) <= 20;
var bs = Math.abs(b - y2) <= 20;
var ls = Math.abs(l - x1) <= 20;
var rs = Math.abs(r - x2) <= 20;
Earlier in the drag function, "d" is set to:
var d = ui.options.snapTolerance || 20;
In other words, "d" is the actual snapping tolerance and 20 is the
default value, but in the aforementioned lines, always the default
value is usead, not the actual tolerance value.
Cheers,
Behrang