Disable drag and resize on receursive events.