ScrollView, entries, buttons issue

Igor Kravchenko 281 Reputation points
2022-05-29T19:00:38.007+00:00

Hi!
I have a page with vertial ScrollView with entries and horizontal ScrollView with buttons. Sometimes the scroll is impossible.

<ScrollView Orientation="Vertical">
        <StackLayout Padding="10"
                     Spacing="5">
            <Entry Placeholder="First Entry"/>
            <Entry Placeholder="Entry"/>
            <Entry Placeholder="Entry"/>
            <Entry Placeholder="Entry"/>
            <Entry Placeholder="Entry"/>
            <Entry Placeholder="Entry"/>
            <Entry Placeholder="Entry"/>
            <Entry Placeholder="Entry"/>            
            <ScrollView Orientation="Horizontal">
                <HorizontalStackLayout Spacing="5">
                    <Button Text="Button"/>
                    <Button Text="Button"/>
                    <Button Text="Button"/>
                    <Button Text="Button"/>
                    <Button Text="Button"/>
                </HorizontalStackLayout>
            </ScrollView>
            <Entry Placeholder="Entry"/>
            <Entry Placeholder="Entry"/>
            <Entry Placeholder="Entry"/>
            <Entry Placeholder="Entry"/>
            <Entry Placeholder="Entry"/>
            <Entry Placeholder="Entry"/>
            <Entry Placeholder="Entry"/>
            <Entry Placeholder="Entry"/>
            <Entry Placeholder="Entry"/>
            <Entry Placeholder="Last Entry"/>            
        </StackLayout>
    </ScrollView>
  1. Create main vertical ScrollView with entries and horizontal ScrollView with buttons inside it.
  2. Try to scroll entries (with initial touch on Entry not on the blank space). All works fine.
  3. Try to scroll buttons. All works fine.
  4. Try to scroll entries again (with initial touch on Entry not on the blank space). Scrolling is impossible.
  5. Press the button.
  6. Try to scroll entries (with initial touch on Entry not on the blank space). All works fine again.
    Is it something with focus? How can I resolve this issue? Thanks.

I have uploaded a video. Please check it.
Thanks.

https://youtube.com/shorts/th1tQEIQwEE?feature=share

Developer technologies | .NET | .NET MAUI
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2022-05-30T07:51:47.277+00:00

    Hello,​

    Is it something with focus? How can I resolve this issue?

    I can reproduce this issue.
    Based on my research, this issue is related to the Entry, Entry do not release focus when soft keyboard is closed,
    If I replace Entry to `Label', This issue is missing.

    This issue was filed on MAUI GitHub page. If this issue is fixed, PG will update in this thread.
    https://github.com/dotnet/maui/issues/6933

    Best Regards,

    Leon Lu


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.