better handling of mouseevents when target is the document itself
3.0.4