correct mouse events for nested groups. fix #912