int OnLButtonUp(int nFlags, float x1, float y1) { DebugPrint("Generic OnLButtonUp"); if ( m_bPopupActive && mCanCloseOnLButtonUp) { if ( this.PopupLayer.NewspaperList.IsOpen() && (this.PopupLayer.NewspaperList.IsOverScroll() == FALSE) ) { if (m_bShowTeams == FALSE) _CloseUserTeams(); else if(m_bShowNewspaperList == FALSE) _CloseNewspaperList(); } } mCanCloseOnLButtonUp = true; }