Fixed a problem where modal loops could stop a mouse-up event.