maui icon indicating copy to clipboard operation
maui copied to clipboard

[iOS] Fix issue that does not allow scrolling in WebView with PDF

Open jsuarezruiz opened this issue 1 year ago • 2 comments

Description of Change

Fix issue that does not allow scrolling in WebView with PDF on iOS.

Initially, I started by checking the status of the WebView: if internal UIScrollView scrolling was enabled, if the assigned size was correct, etc. Everything is fine so let's go check the hierarchy. It was interesting that the problem does not appear without a Layout as a parent. Reviewing I realized that the problem comes from the changes applied in https://github.com/dotnet/maui/pull/17286 related to InputTransparent. Applied changes to keep the InputTransparent working and fix the issue.

Issues Fixed

Fixes #18716

jsuarezruiz avatar Apr 02 '24 11:04 jsuarezruiz

What happens when the dev sets the webview as input transparent? can you scroll? what does the hit test result become? I cannot recall if the user interaction value is "viral" and the hit test blocks hitting all children.

mattleibow avatar Apr 16 '24 19:04 mattleibow

/rebase

PureWeen avatar Apr 16 '24 19:04 PureWeen

The failing Windows Device Test is not related with the PR changes image

jsuarezruiz avatar Apr 18 '24 07:04 jsuarezruiz

Alternative PR https://github.com/dotnet/maui/pull/21883

jsuarezruiz avatar Apr 25 '24 14:04 jsuarezruiz

Closing in favor of https://github.com/dotnet/maui/pull/21883

PureWeen avatar Apr 26 '24 16:04 PureWeen