From fc1261a9f12cb27de395c7f41ff14c2003986584 Mon Sep 17 00:00:00 2001 From: Steven Kirk Date: Fri, 19 May 2023 15:51:31 +0200 Subject: [PATCH] Hack for ScrollGestureRecognizer. --- src/Avalonia.Controls/ListBoxItem.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Avalonia.Controls/ListBoxItem.cs b/src/Avalonia.Controls/ListBoxItem.cs index 0a959c5666..987b9c5d2f 100644 --- a/src/Avalonia.Controls/ListBoxItem.cs +++ b/src/Avalonia.Controls/ListBoxItem.cs @@ -72,7 +72,10 @@ namespace Avalonia.Controls // Otherwise perform the selection when the pointer is released as to not // interfere with gestures. _pointerDownPoint = p.Position; - e.Handled = true; + + // Ideally we'd set handled here, but that would prevent the scroll gesture + // recognizer from working. + ////e.Handled = true; } } }