Fix line drawing.
Simple UI mouse unlocking.