-
-
Couldn't load subscription status.
- Fork 964
Respect device scale when calculating viewport bounds #3305
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
base: master
Are you sure you want to change the base?
Conversation
|
@timon-schelling this is probably related to your upcoming work right? |
Yeah, I'm gonna test it with desktop later, maybe enough to set browser scale and apply this patch. |
|
@Sambhram1 are you still working on this? See CI for formatting issues.
|
|
@timon-schelling i will solve ci issue and push |
|
@Sambhram1 you can |
|
!build |
|
|
This PR adds offsets to tools when browser zoom != 100%. But this is essentially the conversion we need on desktop. |
|
Basically this solves the wrong issue. Scale not being applied for one tool, is fixed by scaling all coordinates, breaks other tools along the way. @TrueDoctor We should decide if we want to work with logical or physical pixels in tools. I will mark this as draft for now. |

Scale all pointer coordinates and viewport bounds by before sending them to the backend. This ensures consistent coordinate spaces across the entire rendering pipeline.