Added OnDrag event handler.