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

Fix the window is shifted when pinching to resize #5021

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

uiryuu
Copy link
Member

@uiryuu uiryuu commented Jun 24, 2024


Description:
This commit:

  • Caches the window frame when started pinching to resize
  • Used the cached window frame instead of the current window frame to avoid accumulated rounding errors

Before:
https://github.com/iina/iina/assets/20237141/3bfc10d4-5fbc-419d-80e1-9d41ca6ea623

After:
https://github.com/iina/iina/assets/20237141/eff9cb20-38a0-43d3-a70b-63cdd1d10c6f

- Cache the window frame when started pinching to resize
- Used the cahced window frame instead of the current window frame to
  avoid accumulated rounding errors
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.

None yet

1 participant