Set shape opacity when mouse dragged.