How can I stop drag just in one direction?
<p>I'm workin' with <code>Leap Motion</code>, and currently I'm developing a <code>draggable</code> map, utilizing <code>_grab</code> function. To avoid that users <code>_grab/drag_</code> the map behind its limit, I need to stop the movement just in one (or two) direction(s);
i.e., if top position of map reach value 0, I need to stop the possibility to move on y axes but just on one direction (that drag map beyond 0).
Actually I have the check on position, and stop (all) the move, but it isn't good...</p>