JavaScript: Container with draggable. Constrain draggable to a circle shape, in container.

Posted by ritsuke on Stack Overflow See other posts from Stack Overflow or by ritsuke
Published on 2010-04-11T19:18:23Z Indexed on 2010/04/11 19:23 UTC
Read the original article Hit count: 143

Filed under:

Hey guys,

I'm looking for a simple solution to place a draggable element inside of a box container. When the user begins to interact with the draggable, the draggable element should remain constrained to a circular shape, within the container.

At a complete loss as to how I should accomplish this.

Thank you! :-)

Additional:

© Stack Overflow or respective owner

Related posts about JavaScript