Skip to content

Commit c7d4f7a

Browse files
committed
Added IsUnix condition and comment.
1 parent cf63865 commit c7d4f7a

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

StabilityMatrix.Avalonia/Controls/FADownloadableComboBox.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
using StabilityMatrix.Avalonia.Services;
1313
using StabilityMatrix.Avalonia.ViewModels.Base;
1414
using StabilityMatrix.Avalonia.ViewModels.Dialogs;
15+
using StabilityMatrix.Core.Helper;
1516
using StabilityMatrix.Core.Models;
1617

1718
namespace StabilityMatrix.Avalonia.Controls;
@@ -51,6 +52,13 @@ private void OnDropDownOpenedHandler(object? sender, EventArgs e)
5152
if (scrollViewer == null)
5253
return;
5354

55+
// On Unix-like systems, overlay popups share the same TopLevel visual root as the main window.
56+
// FAComboBox.OnPopupOpened adds a TopLevel tunnel handler that marks all wheel eventsas handled while the dropdown is open,
57+
// which inadvertently blocks scroll-wheelevents in popup menus in Inference model cards.
58+
// Resetting e.Handled on the ScrollViewer's tunnel phase counters this.
59+
if (!Compat.IsUnix)
60+
return;
61+
5462
openSubscription = scrollViewer.AddDisposableHandler(
5563
PointerWheelChangedEvent,
5664
static (_, ev) =>

0 commit comments

Comments
 (0)