Match mouseup on the whole document.

You can always select so that you go away from the area where you started, away from wrapper and then there release the mouse. It would be more reasonable to limit mousedown event, but not mouseup.
Merge branch 'document-mouseup' into peerlibrary