tangxu
2024-10-14 0f58c0039852f4be3d449906e9f2fb54332126c6
WinFrmUI/DPumpHydr.WinFrmUI.Ribbon/Classes/RibbonPopupManager.cs
@@ -158,9 +158,13 @@
            if (dd != null)
            {
                WinApi.POINT pos;
                if (WinApi.GetCursorPos(out pos))
                {
                foreach (RibbonItem item in dd.Items)
                {
                    if (dd.RectangleToScreen(item.Bounds).Contains(e.Location))
                        if (dd.RectangleToScreen(item.Bounds).Contains(pos.x, pos.y))
                        //if (dd.RectangleToScreen(item.Bounds).Contains(e.Location))
                    {
                        IScrollableRibbonItem sc = item as IScrollableRibbonItem;
@@ -178,7 +182,7 @@
                            return true;
                        }
                    }
                    }
                }
            }
            //kevin carbis - added scrollbar support to dropdowns so we need to feed the mouse wheel to the