Matchstic / Xen-HTML

Unified and simplified HTML rendering
GNU General Public License v2.0
110 stars 15 forks source link

[iOS 14] Cannot scroll properly in widgets on the Homescreen background layer #317

Closed Matchstic closed 3 years ago

Matchstic commented 3 years ago

Describe the bug

Given a widget with a small area that scrolls due to an overflow, scrolling is not possible on iOS 14. This is caused by Apple changing the necessary method calls in touch forwarding to direct methods.

To Reproduce

N/A

Expected behavior

Widget interaction should work as expected in overflow'd regions.

Screenshots

N/A

System Info

Additional context

Existing solutions to this:

Further info: https://github.com/Matchstic/Xen-HTML/blob/fc859c45cde2a16f8d00e8102ec45d45b7d9f92d/Shared/Web%20Controller/XENHWidgetController.m#L943

An alternative approach could be to hook the hittest method in whatever is the parent of the background widget container. Check all the results from the children, and conditionally favour any WKScrollView that comes from the background.

Matchstic commented 3 years ago

This issue is effectively blocked until an approach to calling direct methods exists, that won't be a maintenance headache.