public override void releaseLeftClick(int x, int y) { if (HoverInElement == null) { return; } Point p = new Point(x, y); Point o = new Point(Area.X + zoom10, Area.Y + zoom10); HoverInElement.LeftUp(p, o); Hold = false; if (HoverInElement.InBounds(p, o)) { return; } HoverInElement.HoverOut(p, o); HoverInElement = null; }
public override void LeftUp(Point p, Point o) { if (!Visible) { return; } if (HoverElement == null) { return; } Point o2 = new Point(Area.X + o.X, Area.Y + o.Y); HoverElement.LeftUp(p, o2); Hold = false; if (HoverElement.InBounds(p, o2)) { return; } HoverElement.HoverOut(p, o2); HoverElement = null; }