how to avoid jQuery UI draggable from also triggering click event
        Posted  
        
            by 
                James Tauber
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by James Tauber
        
        
        
        Published on 2010-08-15T08:51:38Z
        Indexed on 
            2011/01/07
            23:54 UTC
        
        
        Read the original article
        Hit count: 250
        
A have a large div (a map) that is draggable via jQuery UI draggable. The div has child divs which are clickable.
My problem is that if you drag the map, on mouse up, the click event is fired on whatever child div you started the drag from.
How do I stop the mouse up from triggering the click event if its part of a drag (as opposed to someone just clicking without a drag, in which case the click event is desired).
© Stack Overflow or respective owner