Uh, that describes most technical fouls. Most technical fouls are for non-gameplay unsportsmanlike conduct: arguing, gesturing, taunting, etc.
The rule itself is very simple: you can't hang on the rim at all, except to avoid injury to a player.
Hanging on for a split second after the dunk is one thing. But any motion other than a release and drop should be a clear violation. Chin up: technical. Leg kick: technical.
Shaking the rim like you're trying to tear it from the backboard: technical.
It's somewhat amusing listening to all the apologists characterizing it as a "collapse". It took the Cavs 8 minutes to claw back from 14 down to 2 down. It seems that certain people conveniently ignore that the Cavs were only down 2 points 5 minutes before that. So the Cavs "collapsed" for 12 points in 5 minutes before the Warriors "collapsed" for 12 points in 8 minutes.
Why can't people just say that it was a good game? A one-point victory is not reason to brag too much, even if there weren't some late blown calls.