update ycoord for d on mobile