During the next day the depression remained offshore and moved towards the north passing about 120 kilometers to the southeast of Shanghai before early on July 28 weakening into an area of low pressure.