[draggable] Stop dragging when condition happened. How?
Hello.
I'm using draggable to slide bar vertically (axis-y).
When sliding object, I calculate some coordinates and when there will be some coordinates (it's dinamic value), I must prevent dragging in this direction (for example, up). but still allow to move down (and when I will slide object down, I need to allow slide it up again, until it reaches those coordinates).
"Containment" dont solve this problem, because "draggable" object is much bigger than "parent" object (in height).
And $(this).css('top', 0) did not work too. What to use?