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: 192
        
JavaScript
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:
- Box container would be 100 pixels wide and tall
 - Draggable would be 20 pixels wide and tall
 - http://tool-man.org/examples/dragging.html This is on the TODO list, but of course this site is no longer maintained
 
© Stack Overflow or respective owner