xdrag and ydrag intialialized