View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0002597||NoesisGUI||C# SDK||public||2023-05-14 22:40||2023-07-05 19:31|
|Target Version||3.2.2||Fixed in Version||3.2.2|
|Summary||0002597: Adding a scrollviewer makes keyboard focus behave in completely unexpected ways for the controls inside.|
|Description||Noesis' 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 Reproduce||Run the attached project|
Run the keybaord sequences from above, or just test the application
|Tags||No tags attached.|
ScrollViewerProblemsSample.zip (2,098,382 bytes)
|I'll send you a patched library as soon as I have a fix for you to test.|
Hi, please try the following library and let me know if you find any more issues with the focus:
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
|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!|
|Fixed in changeset r12545|
|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|