compose-multiplatform-core icon indicating copy to clipboard operation
compose-multiplatform-core copied to clipboard

Opt-out of new touches strategy on iOS

Open elijah-semyonov opened this issue 7 months ago • 1 comments

Right now all touches are delayed until reception by interop views after changed introduced by https://github.com/JetBrains/compose-multiplatform-core/commit/a78dd417a3e1aec2aa2e009d46129551eb215a4e

Similar to interaction of UIControl and UIScrollView, sometimes it's not a desirable behavior and touches should be processed exclusively by child views without any delay, as it was working before (without intending so).

The changes in this PR include new API allowing opt-out of new behavior and logic, that respect the values passed in the API.

Fixes CMP-5705

Testing

First touch event in a sequence, being hit-tested against UIKitView with areTouchesDelayed set to false should be ignored by Compose and immediately dispatched.

See native MKMapView in Demo/iOS-specific features/UIKitInterop

This should be tested by QA

Release Notes

iOS - Features

  • Allow to opt-out of newly introduced touches processing strategy in interop views, see new areTouchesDelayed argument in UIKitView and UIKitViewController API.

elijah-semyonov avatar Jul 19 '24 08:07 elijah-semyonov