From 05114687576b22cf4200c555b20b2a3b54c4183b Mon Sep 17 00:00:00 2001 From: Markus Hofknecht Date: Sat, 8 Jan 2022 23:23:14 +0100 Subject: [PATCH] [Feature] Swipe scrolling on touchscreen (#275), version 1.2.1.1 --- Business/Menus.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Business/Menus.cs b/Business/Menus.cs index 82f6cce..2b24424 100644 --- a/Business/Menus.cs +++ b/Business/Menus.cs @@ -1136,7 +1136,7 @@ namespace SystemTrayMenu.Business DataGridView dgv = (DataGridView)sender; DataGridView.HitTestInfo hitTestInfo; hitTestInfo = dgv.HitTest(e.X, e.Y); - if (!isDraggingSwipeScrolling && + if (!isDragSwipeScrolled && hitTestInfo.RowIndex == lastMouseDownRowIndex && hitTestInfo.RowIndex > -1 && hitTestInfo.RowIndex < dgv.Rows.Count)