-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[iOS] Readonly Editor - Scrolling fix #20505
[iOS] Readonly Editor - Scrolling fix #20505
Conversation
Hey there @kubaflo! Thank you so much for your PR! Someone from the team will get assigned to your PR shortly and we'll get it reviewed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jsuarezruiz I added a new commit |
/azp run MAUI-UITests-public |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run MAUI-UITests-public |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
if (view is ITextInput textInput) | ||
// Interaction should not be disabled for an editor if it is set as read-only | ||
// because this prevents users from scrolling the content inside an editor. | ||
if (view is not IEditor && view is ITextInput textInput) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if this is all wrong for IEntry too and we should be using the https://learn.microsoft.com/en-us/dotnet/api/uikit.uitextfielddelegate.shouldbeginediting?view=xamarin-ios-sdk-12
But this will still apply for the search bar. So we can do this (investigate at least) later.
# Conflicts: # src/Controls/tests/TestCases.HostApp/Issues/Issue19500.xaml # src/Controls/tests/TestCases.HostApp/Issues/Issue19500.xaml.cs
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 3 pipeline(s). |
Description of Change
Setting
UserinteractionEnabled
to false prevents the editor from scrolling, so I replaced it with changing the value ofEditable
based on theIsReadOnly
propertyIssues Fixed
Fixes #19500
Screen.Recording.2024-02-11.at.14.41.57.mov