It should be considered littering because it is unwanted trash in a place which it is not supposed to be.
The vomit is also considered litter, but the person may not be charged for littering because of sympathetic considerations.
Please do not have any sympathy for the masturbating moron.
Another moron once told me that sticking his bus ticket on the back of a bus seat was not littering because it wasn't on the floor.