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

Mouse move events do not work properly on macOS13. #2280

Closed
Cupnfish opened this issue Oct 22, 2022 · 6 comments
Closed

Mouse move events do not work properly on macOS13. #2280

Cupnfish opened this issue Oct 22, 2022 · 6 comments

Comments

@Cupnfish
Copy link
Contributor

Mouse move events do not work properly on macOS13

@Cupnfish
Copy link
Contributor Author

In addition, the mouse dragging event works properly.

@liias
Copy link
Contributor

liias commented Oct 25, 2022

Same for me. E.g HotChanged lifecycle event is not fired at all.

@liias
Copy link
Contributor

liias commented Oct 26, 2022

I think I found a fix. You need to move view.addTrackingArea from make_view after view.initWithFrame_ is called.
macOS docs does not specify it as mandatory, but says:

You can create an NSTrackingArea instance and add it to a view at any point because successful creation does not depend on the view being added to a window. Listing 6-1 shows the creation and addition of an NSTrackingArea instance in a custom view’s [initWithFrame:] method;

I have example hotfix at
Browsers-software@c248c63

@raphlinus
Copy link
Contributor

Sounds good. I don't have access to a 13 box here. @liias would you be willing to PR that?

@liias
Copy link
Contributor

liias commented Oct 26, 2022

Sure! Will do a PR, and some discussion can happen there.

@liias
Copy link
Contributor

liias commented Oct 27, 2022

PR at #2282

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

No branches or pull requests

3 participants