Skip to content

Commit

Permalink
update enable/drag.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronayres35 committed Mar 1, 2021
1 parent 37287f8 commit fe618cb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion enable/drag.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def init(self, components, bounds_rect, drag_root, drag_bounds_rect,
self.window = components[0].window
self.drag_over = []

self.on_trait_change(self.drag_done, drag_event)
self.observe(self.drag_done, drag_event)

# -------------------------------------------------------------------------
# Handle the mouse moving while dragging:
Expand Down Expand Up @@ -151,6 +151,8 @@ def drag_validate(self, event, drag_bounds):
# -------------------------------------------------------------------------

def drag_done(self, event):
print('!'*100)
print(event)
components = self.components
drag_copy = self.drag_copy
start_event = self.start_event
Expand Down

0 comments on commit fe618cb

Please sign in to comment.