View Issue Details

IDProjectCategoryView StatusLast Update
0003724NoesisGUIUnrealpublic2024-10-25 13:47
ReporterDominikRuta Assigned Tohcpizzi  
PrioritynormalSeveritymajor 
Status resolvedResolutionfixed 
Product Version3.2.4 
Target Version3.2.5Fixed in Version3.2.5 
Summary0003724: [UE5] Double-click needed to select item in Listbox. Single-click does not work.
Description

In order to select item in ListBox, I need to double click ListBoxItem to select it instead of a single click. All other elements works fine. While UI is active, GameAndUI input mode is activated. This problem occurs after update to Noesis 3.2.4.

Link to original forum thread - https://www.noesisengine.com/forums/viewtopic.php?t=3461

Steps To Reproduce

In UE5 I've created simple widget:

<ListBox>
<ListBoxItem>Item 1</ListBoxItem>
<ListBoxItem>Item 2</ListBoxItem>
<ListBoxItem>Item 3</ListBoxItem>
<ListBoxItem>Item 4</ListBoxItem>
<ListBox.Style>
<Style TargetType="{x:Type ListBox}">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<Border Background="{StaticResource TransparentWhite}">
<ItemsPresenter />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</ListBox.Style>
<ListBox.ItemContainerStyle>
<Style TargetType="{x:Type ListBoxItem}">
<Setter Property="Foreground" Value="Red" />
<Setter Property="Template">
<Setter.Value>
<ControlTemplate>
<Border Background="{StaticResource TransparentWhite}">
<ContentPresenter />
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="ContentTemplate">
<Setter.Value>
<DataTemplate>
<Grid Background="Green" Margin="5" Focusable="False">
<TextBlock Focusable="False" Text="{Binding}" Style="{StaticResource Style.Text.T1}" Foreground="{Binding Foreground, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type ListBoxItem}}}" />
</Grid>
</DataTemplate>
</Setter.Value>
</Setter>
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Foreground" Value="Yellow" />
</Trigger>
</Style.Triggers>
</Style>
</ListBox.ItemContainerStyle>
</ListBox>

Then use controller and try to cycle through elements. In my case, focus is lost after focusing another element in the list.

PlatformWindows

Activities

DominikRuta

DominikRuta

2024-10-07 17:06

reporter   ~0010005

Hey, I've fixed the issue by applying your revision 14284.

DominikRuta

DominikRuta

2024-10-10 11:47

reporter   ~0010010

It solved the issue. However, unfortunately, It introduced another problem. There is an issue when switching from mouse to gamepad controller while having open some screen with list. It looks like the focus is lost from the entire screen and I can't navigate through the list using d-pads. It seems that core of the problem are UNoesisInstance::NativeOnMouseEnter and UNoesisInstance::NativeOnMouseLeave. If I revert changes in these functions, double-click issue is back again, but the problem with the focus is gone and vice-versa.

Issue History

Date Modified Username Field Change
2024-10-03 13:42 DominikRuta New Issue
2024-10-03 13:42 DominikRuta Tag Attached: C++
2024-10-03 13:42 DominikRuta Tag Attached: Unreal
2024-10-07 15:29 jsantos Assigned To => hcpizzi
2024-10-07 15:29 jsantos Status new => assigned
2024-10-07 15:29 jsantos Target Version => 3.2.5
2024-10-07 17:06 DominikRuta Note Added: 0010005
2024-10-10 11:47 DominikRuta Note Added: 0010010
2024-10-10 14:16 jsantos Status assigned => feedback
2024-10-16 12:18 DominikRuta Steps to Reproduce Updated
2024-10-25 13:47 sfernandez Status feedback => resolved
2024-10-25 13:47 sfernandez Resolution open => fixed
2024-10-25 13:47 sfernandez Fixed in Version => 3.2.5