I think that came during the period of Black & White by Lionhead Studios. (which was a milestone in using gestures to cast spells by swirly your mouse around)
And Opera openly admitted that they copied B&W there, because they considered it a very useful feature. It even came in a sub-version, which at that time was somewhat unusual for such an important feature.