-
Notifications
You must be signed in to change notification settings - Fork 10k
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 text selection with hdpi screens (#15229) #15232
Conversation
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.
Given that we have a couple of other measureText
-usages in the code-base, are any of those similarly affected?
If so that can, and maybe even should, be handled in follow-up patches.
Also, I'm assuming that there's no particularly good way to test this?
src/display/text_layer.js
Outdated
@@ -595,6 +597,7 @@ class TextLayerRenderTask { | |||
this._capability = createPromiseCapability(); | |||
this._renderTimer = null; | |||
this._bounds = []; | |||
this._devicePixelRatio = window.devicePixelRatio; |
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.
To prevent issues in non-browser environments, please change this to:
this._devicePixelRatio = window.devicePixelRatio; | |
this._devicePixelRatio = globalThis.devicePixelRatio || 1; |
/botio test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.193.163.58:8877/abdfec01cf95c38/output.txt |
From: Bot.io (Linux m4)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/465981514c8de28/output.txt |
From: Bot.io (Linux m4)FailedFull output at http://54.241.84.105:8877/465981514c8de28/output.txt Total script time: 25.92 mins
Image differences available at: http://54.241.84.105:8877/465981514c8de28/reftest-analyzer.html#web=eq.log |
From: Bot.io (Windows)FailedFull output at http://54.193.163.58:8877/abdfec01cf95c38/output.txt Total script time: 28.79 mins
|
/botio-linux preview |
From: Bot.io (Linux m4)ReceivedCommand cmd_preview from @Snuffleupagus received. Current queue size: 0 Live output at: http://54.241.84.105:8877/df81b472a512af7/output.txt |
From: Bot.io (Linux m4)SuccessFull output at http://54.241.84.105:8877/df81b472a512af7/output.txt Total script time: 2.43 mins Published |
No description provided.