ManticMoo.COM All Articles Jeff's Articles
Jeffrey P. Bigham

An oddity of events

Jeffrey P. Bigham

Related Ads

I found out today after a lot of struggling that you shouldn't put a new menu that you're meaning to replace a context menu right underneath the mouse. In my setup, I caught all mouse events over a certain HTML element, put up the menu in response to the first and then suppressed propagation of the events. For some reason the stupid context menu kept popping up! The problem ended up being that the new menu I popped up was itself generating mouse events after it was created, causing the context menu to be brought up in response to it! It was really annoying.

Jeffrey P. Bigham
ManticMoo.COM All Articles Jeff's Articles