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

[Cocoa] Fix location that new subviews get added #1569

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

maddyaby
Copy link
Contributor

@maddyaby maddyaby commented Jan 8, 2025

[Cocoa] Fix location that new subviews get added

Y axis is flipped for the web coordinate system vs. the window, so events originating from the webview will have flipped coordinates

Resolves #1568

Y axis is flipped for the web coordinate system vs. the window, so events originating from the webview will have flipped coordinates
@maddyaby
Copy link
Contributor Author

maddyaby commented Jan 8, 2025

So this flips the coordinates for any call to addSubview... not sure if we want to restrict it to only ones that originate from the webview (but I don't know how to do that :( ).

Do we expect any other originators of addSubview beyond the first call that adds the WKFlippedView container for the webview, and calls that originate from the webview itself?

@r0x0r
Copy link
Owner

r0x0r commented Jan 8, 2025

Good job on fixing this.
I know nothing of subviews, so sorry I don't know an answer to your question

@r0x0r r0x0r merged commit f10376d into r0x0r:master Jan 8, 2025
1 check passed
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.

Native Color Picker on MacOS is drawn in the wrong place
2 participants