Example #1
0
 public override void OnUp(PointEventArgs p)
 {
     base.OnUp(p);
     if (downControl != null)
     {
         downControl.OnUp(TranslatePoint(downControl, p));
     }
 }
Example #2
0
        protected override void OnMouseUp(MouseEventArgs e)
        {
            if (control == null)
            {
                return;
            }
            int            duration = Environment.TickCount - lastTick;
            PointEventArgs p        = TranslatePoint(e.X, e.Y);

            control.OnUp(p);
            // note that p might change it's value, therefore it is set again:
            p = TranslatePoint(e.X, e.Y);
            bool gestured = PerformUpGesture(e);

            if (!gestured)
            {
                if (duration < ClickThreshold)
                {
                    control.OnClick(p);
                }
            }
        }