maui icon indicating copy to clipboard operation
maui copied to clipboard

Unintended entry focus change in `ScrollView`

Open MartyIX opened this issue 1 year ago • 1 comments

Description

I can see an unitended change in focus that can be very bothering because it can move user from filling an entry that is vertically far from the first form's entry.

Steps to Reproduce

  1. Run the sample application
  2. Click the Input 7's entry like this: image
  3. Click the Input 7 label (!) itself like this: image
  4. Focus moves to the Input 1's entry like this: image

-> The step number 4 should not occur or there should be a way to remove it IMO.

Interestingly, commenting out this line https://github.com/MartyIX/MauiRepro202401ScrollJump/blob/4a0919488bdcbdc5d8bc91e64976f0baf6bb7799/MainPage.xaml#L6 fixes the issue. So it looks like the bug is linked to the ScrollView in some way.

Demo: Animation

Link to public reproduction project repository

https://github.com/MartyIX/MauiRepro202401ScrollJump

Version with bug

8.0.3

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

I can't reproduce the issue on Mac Catalyst. Not sure about android.

Affected platform versions

I know that Windows is affected, not sure about other platforms

Did you find any workaround?

Not yet.

Relevant log output

No response

MartyIX avatar Jan 07 '24 12:01 MartyIX

It looks like this bug might be related to this one: https://github.com/microsoft/microsoft-ui-xaml/issues/3825 (not tested, it just kind of sounds similar)

MartyIX avatar Jan 07 '24 14:01 MartyIX

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.

ghost avatar Jan 08 '24 15:01 ghost

Duplicate of #11472

PureWeen avatar Jan 08 '24 16:01 PureWeen