Remove ScrollViewer from LabelsListBox to prevent mouse events being handled
MODIFY
WalletWasabi.Fluent/Controls/LabelsListBox.axaml
WalletWasabi.Fluent/Controls/LabelsListBox.axaml
<Styles xmlns="https://github.com/avaloniaui"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:g="clr-namespace:System.Collections.Generic;assembly=System.Collections"
- xmlns:c="clr-namespace:WalletWasabi.Fluent.Controls"
- xmlns:i="clr-namespace:Avalonia.Xaml.Interactivity;assembly=Avalonia.Xaml.Interactivity"
- xmlns:behaviors="using:WalletWasabi.Fluent.Behaviors">
+ xmlns:c="clr-namespace:WalletWasabi.Fluent.Controls">
<Design.PreviewWith>
<Border BorderBrush="Black" BorderThickness="1" Width="250" Height="50">
<Style Selector="c|LabelsListBox">
<Setter Property="Template">
<ControlTemplate>
- <ScrollViewer Name="PART_ScrollViewer"
- HorizontalScrollBarVisibility="Disabled"
- VerticalScrollBarVisibility="Disabled">
- <i:Interaction.Behaviors>
- <behaviors:HorizontalScrollViewerBehavior IsEnabled="false" />
- </i:Interaction.Behaviors>
-
<c:LabelsItemsPresenter Name="PART_ItemsPresenter"
Items="{TemplateBinding Items}"
Margin="0"
</ItemsPanelTemplate>
</ItemsPresenter.ItemsPanel>
</c:LabelsItemsPresenter>
- </ScrollViewer>
</ControlTemplate>
</Setter>
</Style>

Remove ScrollViewer from LabelsListBox to prevent mouse events being handled