View Issue Details

IDProjectCategoryView StatusLast Update
0002597NoesisGUIC# SDKpublic2023-07-05 19:31
Reportersumel007 Assigned Tosfernandez  
PrioritynormalSeveritymajorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.2.1 
Target Version3.2.2Fixed in Version3.2.2 
Summary0002597: Adding a scrollviewer makes keyboard focus behave in completely unexpected ways for the controls inside.
DescriptionNoesis' automatic keyboard focus seems to change its behaviour when a panel is placed inside the scrollviewer in 3.2.1 (haven't tested it out on previous version, since I was waiting for fix to scrollviewer's ability to focus controls outside its scrolled-area, which was implemented in 3.2.1). In my case it seems to behave completely unexpectedly, jumping several focusable elements up or down, skipping elements, going down when pressing right etc.
I am attaching a modified Applications sample with a case similar to what we have in our game. A scrollviewer with one large stackpanel inside of it. The staxkpanel has some itemscontrols and a listbox inside (but their individual scrolling is disabled, but it is worth to mention it in case it is related to the issue). The issues should be obvious when running the sample, but some specific examples:
1. Sequence right right right down down down the third down moves us outside the sliders and we would expect it to focus the left button of row 0_0, instead it jumps to row 0_3.
2. Pressing right after sequence 1 focuses us on the right button 2_0, completely skipping the portion inside Header_1.
3. Pressing down and then up after sequence one focuses us on 1_0 (expected) and then 0_0 (I would expect 0_3).
There are many more examples, but in general it seems to behave quite randomly.

There is commented out version of this same stackpanel outside the scrollviewer. There are still some issues (ie if we focus on the right button and press up we focus the upper row's left button instead of right, whereas right would be expected) but these are much more minor (but would be appreciated if they got fixed as well (though if 0002406 gets implemented then these minor problems could be fixed manually by us).
Steps To ReproduceRun the attached project
Run the keybaord sequences from above, or just test the application
TagsNo tags attached.
PlatformWindows

Relationships

has duplicate 0002644 resolvedsfernandez Directional Keyboard Navigation Broken 
related to 0002599 resolvedsfernandez Directional focus can't be moved to controls inside ItemsControl's items 

Activities

sumel007

sumel007

2023-05-14 22:40

reporter  

sfernandez

sfernandez

2023-05-15 11:09

manager   ~0008477

I'll send you a patched library as soon as I have a fix for you to test.
sfernandez

sfernandez

2023-05-15 17:14

manager   ~0008478

Hi, please try the following library and let me know if you find any more issues with the focus:
https://drive.google.com/file/d/11LMr2-CSTJyHWc0YSj9xotCWs8L40DF8/view?usp=share_link
sfernandez

sfernandez

2023-05-17 14:41

manager   ~0008481

I made some improvements to the directional navigation to avoid the behavior you mentioned.
Please try this new library: https://drive.google.com/file/d/136xiNG24MN4wbZPwoG9JNT44oCzwz79U/view?usp=share_link
sumel007

sumel007

2023-05-18 09:36

reporter   ~0008483

Hi. I've tested it on our screen and it seems like all the issues are fixed. If we find anything else I'll let you know, but I think the issue is resolved for now. Thank you!
sfernandez

sfernandez

2023-06-06 12:56

manager   ~0008525

Fixed in changeset r12545

Issue History

Date Modified Username Field Change
2023-05-14 22:40 sumel007 New Issue
2023-05-14 22:40 sumel007 File Added: ScrollViewerProblemsSample.zip
2023-05-15 11:07 sfernandez Assigned To => sfernandez
2023-05-15 11:07 sfernandez Status new => assigned
2023-05-15 11:07 sfernandez Product Version 3.2 => 3.2.1
2023-05-15 11:07 sfernandez Target Version => 3.2.2
2023-05-15 11:09 sfernandez Status assigned => feedback
2023-05-15 11:09 sfernandez Note Added: 0008477
2023-05-15 16:52 sfernandez Relationship added related to 0002599
2023-05-15 17:14 sfernandez Note Added: 0008478
2023-05-17 09:01 sumel007 Status feedback => assigned
2023-05-17 14:41 sfernandez Status assigned => feedback
2023-05-17 14:41 sfernandez Note Added: 0008481
2023-05-18 09:36 sumel007 Note Added: 0008483
2023-05-18 09:36 sumel007 Status feedback => assigned
2023-06-06 12:56 sfernandez Status assigned => resolved
2023-06-06 12:56 sfernandez Resolution open => fixed
2023-06-06 12:56 sfernandez Fixed in Version => 3.2.2
2023-06-06 12:56 sfernandez Note Added: 0008525
2023-07-05 19:31 sfernandez Relationship added has duplicate 0002644