added checks for left mouse on dragging