Jennifer Lawrence declared that everyone who looked at the leaked nudes of her was committing sexual assault against her (or words to that effect). The idea being that by knowingly viewing "private" content without consent is invasive.
I'm not sure you can legislate it, but I found her position far more satisfying than "oh no I should never have taken the pics in the first place what a mistake to think I wouldn't be hacked".
Most people would consider it a moral wrong I'd warrant. It's like not a crime only by virtue of being a relatively new thing, and other mitigations like it being difficult to police (is there a point in making crimes you don't police and can't prosecute under).