示例#1
0
        private void Input_MouseWheel(object sender, MouseEventArgs e)
        {
            var ipos   = new Point(e.X, e.Y);
            var widget = this.GetWidgetFromPosition(ipos);

            if (widget != null)
            {
                var cpos = widget.PointToClient(ipos);
                widget.OnMouseWheel(MouseEventArgs.CreateWheel((int)cpos.X, (int)cpos.Y, e.WheelDelta));
            }
        }