I don't see any reason to release capture immediately, waiting for mouseup seems better