working sample of mouse click and drag