Example #1
0
        protected override bool OnButtonReleaseEvent(Gdk.EventButton args)
        {
            double x = args.X + action.X;
            double y = args.Y + action.Y;

            if (glass.Dragging)
            {
                glass.EndDrag(x, y);
            }
            else if (min_limit.Dragging)
            {
                min_limit.EndDrag(x, y);
            }
            else if (max_limit.Dragging)
            {
                max_limit.EndDrag(x, y);
            }
            return(base.OnButtonReleaseEvent(args));
        }