Fix mouseup handling outside of itext