That was a daily occurrence at the library at my college - it got to be hilarious to read the campus police report. It never seemed to occur in the science library tho....
I like pr0n as much as the next guy, maybe more, but I can honestly say that pulling my damn dick out in a public library has never occurred to me. Hell, I don't spank it at my desk in my own room.