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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix RecorderCocoa when embedded in certain views #43

Merged
merged 1 commit into from
Feb 21, 2021

Conversation

hank121314
Copy link
Contributor

Summary

Fixes: #41

We use self.convert to convert event.locationWindow to its coordinate system.
But self.frame is using its superview's coordinate system.
So we have to use self.bounds instead.

Thank you for the code review 馃槃 !

@sindresorhus sindresorhus changed the title [Fix] RecorderCocoa: use self.bounds instead of self.frame Fix RecorderCocoa when embedded in certain views Feb 21, 2021
@sindresorhus sindresorhus merged commit 1d53dae into sindresorhus:main Feb 21, 2021
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.

Can't record shortcuts when empty
2 participants