From 7b6986d542b6d39a806cef79c55a215fa148b3be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=82=BD=E6=B0=B4=E5=AF=92=E5=86=B0?= Date: Sat, 30 May 2020 20:46:29 +0800 Subject: [PATCH] =?UTF-8?q?UITimePicker=E6=B7=BB=E5=8A=A0=E9=BC=A0?= =?UTF-8?q?=E6=A0=87=E6=BB=9A=E8=BD=AE=E9=80=89=E6=8B=A9=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SunnyUI/Controls/DropItem/UITimeItem.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/SunnyUI/Controls/DropItem/UITimeItem.cs b/SunnyUI/Controls/DropItem/UITimeItem.cs index 80d3e454..b392c0b6 100644 --- a/SunnyUI/Controls/DropItem/UITimeItem.cs +++ b/SunnyUI/Controls/DropItem/UITimeItem.cs @@ -60,30 +60,30 @@ namespace Sunny.UI { if (e.Delta < 0) { - if (new Rectangle(hc.Location, h1.Size).Contains(e.X, e.Y)) + if (new Rectangle(hc.Location, hc.Size).Contains(e.X, e.Y)) { h1_Click(null, null); } - else if (new Rectangle(mc.Location, m1.Size).Contains(e.X, e.Y)) + else if (new Rectangle(mc.Location, mc.Size).Contains(e.X, e.Y)) { m1_Click(null, null); } - else if (new Rectangle(sc.Location, s1.Size).Contains(e.X, e.Y)) + else if (new Rectangle(sc.Location, sc.Size).Contains(e.X, e.Y)) { s1_Click(null, null); } } else if (e.Delta > 0) { - if (new Rectangle(hc.Location, h1.Size).Contains(e.X, e.Y)) + if (new Rectangle(hc.Location, hc.Size).Contains(e.X, e.Y)) { h2_Click(null, null); } - else if (new Rectangle(mc.Location, m1.Size).Contains(e.X, e.Y)) + else if (new Rectangle(mc.Location, hc.Size).Contains(e.X, e.Y)) { m2_Click(null, null); } - else if (new Rectangle(sc.Location, s1.Size).Contains(e.X, e.Y)) + else if (new Rectangle(sc.Location, sc.Size).Contains(e.X, e.Y)) { s2_Click(null, null); }