The problem between dragging a node and resizing it is using an event filter instead of handler