Fixed bug with dragging - used mouse event.which to determine state of up or down