Changed drag code.