WITH
$('body').not('input').disableSelection();
Disable selection in every body instance that is not input . Since the body is not an input, it will simply disable the selection on the body.
Try the following:
$('body *').not(':has(input)').not('input').disableSelection();
However, like other people, this indicated that it was probably a rather useless disabling of the selection of things that were not dragged in the first place. Therefore, perhaps you should replace body with .drag or, nevertheless, you can select all the objects that are being dragged (keeping the rest of the function the same).
Kokos source share