-
-
Notifications
You must be signed in to change notification settings - Fork 179
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: scale cursor_position #712
Conversation
@wusyong I fixed the linux impl, feel free to take macOS. Windows should be working fine iirc but I will test later today once I switch back to windows. |
@amrbashir I tested with Edit: Linux should be easier because I believe it's all one display one screen now. They should share same scale factor. |
I haven't been able to get it to error at all, using one screen or two.
yeah they share the same scale_factor at least on my KDE. |
just tested Windows and it works as expected with single and multi-monitor setup |
macOS added |
can't approve my own PR so feel free to approve and merge |
but where's Windows? |
Windows works fine |
Tested it yesterday |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I also tested on Windows myself and you are right.
* fix: scale cursor_position, closes tauri-apps#708 * adjust for wayland * Add macOS fix --------- Co-authored-by: Wu Wayne <yuweiwu@pm.me>
What kind of change does this PR introduce?
Does this PR introduce a breaking change?
Checklist
window.cursor_position()
is actuallyLogicalPosition
#708Other information