OSDN Git Service

スワイプスクロールするとしばらく固まるのを直す
authorKazuhiro Fujieda <fujieda@users.osdn.me>
Thu, 20 Apr 2017 11:41:11 +0000 (20:41 +0900)
committerKazuhiro Fujieda <fujieda@users.osdn.me>
Sat, 22 Apr 2017 06:43:03 +0000 (15:43 +0900)
KancolleSniffer/SwipeScrollify.cs

index 9d0bf8a..7af78e6 100644 (file)
@@ -141,8 +141,6 @@ namespace KancolleSniffer
 \r
             public void MouseUp(IntPtr handle, ref bool handled)\r
             {\r
-                if (_touch && !_panelStart.IsEmpty && _panelStart != _panel.AutoScrollPosition)\r
-                    handled = true;\r
                 _touch = false;\r
                 _mouseStart = _panelStart = Point.Empty;\r
             }\r
@@ -204,8 +202,6 @@ namespace KancolleSniffer
 \r
             public void MouseUp(IntPtr handle, ref bool handled)\r
             {\r
-                if (_touch && _barStart != -1 && _barStart != _panel.ScrollBar.Value)\r
-                    handled = true;\r
                 _touch = false;\r
                 _barStart = -1;\r
                 _mouseStart = Point.Empty;\r