Using mouse-tracking loop approach to handle dragging and mouse up. First seemingly working version