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

cfw: Workaround ComposeWindow multiple event listeners on resize #692

Merged
merged 1 commit into from
Jul 19, 2023

Conversation

eymar
Copy link
Member

@eymar eymar commented Jul 19, 2023

Updated the resize function in ComposeWindow.js.kt to avoid multiple event listeners being applied on every resize event. Implemented via cloning the old canvas and replacing it with the new one. This is a workaround solution and a better strategy to fix this in skiko will be considered in the future.

P.S. I'd like it to be inclided in 1.5.0-beta

Updated the resize function in ComposeWindow.js.kt to avoid multiple event listeners being applied on every resize event. Implemented via cloning the old canvas and replacing it with the new one. This is a workaround solution and a better strategy to fix this in skiko will be considered in the future.
@eymar eymar requested review from MatkovIvan and igordmn July 19, 2023 08:26
@eymar eymar changed the title cfw: Update ComposeWindow implement resizing strategy cfw: Workaround ComposeWindow multiple event listeners on resize Jul 19, 2023
@eymar eymar merged commit 276cd47 into jb-main Jul 19, 2023
@eymar eymar deleted the cfw_workaround_multiple_listeners branch July 19, 2023 10:21
MatkovIvan pushed a commit that referenced this pull request Sep 10, 2024
Test: GH workflows
Change-Id: I424b6753a3421281a4bc429287b0b517dc68ae0d

This is an imported pull request from androidx#692.

Resolves #692
Github-Pr-Head-Sha: a188d2b
GitOrigin-RevId: 2bcb47d
Change-Id: Ibff04bff528238ccf0ecbe5433097c64278a1d86
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants