Added viewarea as an argument to startDragging