#NEWLINE# def findDraggable( element , x , y ) : #NEWLINE# #INDENT# "\n    Find the element within a widget's main element that is\n    draggable and under the mouse cursor. We need this for event delegation.\n\n    " #NEWLINE# for elt in DOM . IterWalkChildren ( element ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# draggable = elt . draggable #NEWLINE# #UNINDENT# except : #NEWLINE# #INDENT# draggable = False #NEWLINE# #UNINDENT# if draggable : #NEWLINE# #INDENT# if isIn ( elt , x , y ) : #NEWLINE# #INDENT# return elt #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return None