Skip to content
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

Implement temporary workaround for interop view intercepting touches for popups. #835

Merged
merged 5 commits into from Sep 25, 2023

Conversation

elijah-semyonov
Copy link

Proposed Changes

Traverse owners top down and see, if the touch should be dispatched into compose instead of interop view.

Testing

Test: check ComposeDemo IosBugs/UIKitViewAndDropDown example to work correctly.

Issues Fixed

Fixes: interop view intercepting touches on compose popup on top of it.

RPReplay_Final1695302596.MP4

(y * density.density).toFloat()
)

// TODO: temporary solution copying control flow from [ComposeScene.processPress]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FYI agreed that it's temporary - it shouldn't replicate this logic (that will be refactored soon). More correct way to send touches to scene as black box and handle only that ones that were received in interop view (compose layout inside owner)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, agree. This is a rather trivial solution and solves a reported issue, so I don't see harm in it.

elijah-semyonov and others added 2 commits September 22, 2023 09:04
…ComposeWindow.uikit.kt

Co-authored-by: Ivan Matkov <ivan.matkov@jetbrains.com>
elijah-semyonov and others added 2 commits September 22, 2023 09:40
…Scene.skiko.kt

Co-authored-by: Igor Demin <igordmn@users.noreply.github.com>
@igordmn
Copy link
Collaborator

igordmn commented Sep 22, 2023

merge jb-main to CI to pass

@elijah-semyonov elijah-semyonov merged commit 852de67 into jb-main Sep 25, 2023
1 of 3 checks passed
@elijah-semyonov elijah-semyonov deleted the es/fix-incorrectly-intercepted-touches branch September 25, 2023 11:29
@hxxyyangyong
Copy link

WeChata5bb39dfb2a2c1a9cd898f95adb6f058 What is this performance monitoring tool in the screenshot?

@elijah-semyonov
Copy link
Author

https://developer.apple.com/documentation/xcode/monitoring-your-metal-apps-graphics-performance/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants