-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
The system magnifier can't follow the text input cursor in editor still #83276
Comments
Thanks for filling this. @alexandrudima I guess the font size is required to be set here otherwsie other things would break. |
The magnifier also works fine for me on Windows 10 . It follows the cursor fine. I would like to be able to reproduce before doing a code change, I don't understand why the fontSize would be relevant for the magnifier without at least reproducing. @JiayangShen are you on Windows 10? |
Yes, it is on windows 10 (Windows_NT x64 10.0.17763). And I find that except remove the font-size, if set font-size bigger then 1.67px, the magnifier also works. emmm...it is really too strange! if can't remove font-size, can set it to another value? for example, 2px? I have tried, set font-size equal to line-height size is the best value for magnifier. |
I also tried the insiders version, it has the same issue. |
@JiayangShen I would still like to reproduce, so I can check that the code change makes a difference... Are you perhaps on a high DPI screen or otherwise using this zoom option in Windows or the |
@alexandrudima thanks for your idea! After I set the editor's |
I verified by comparing behavior of the following steps in stable and insiders:
Stable: magnifier stops tracking cursor |
Same here, I will have to use the Insiders version then. Thanks for the tips! |
After applying my settings to the Insiders version, I noticed the same issues, so I tried to find which particular setting was breaking it. made the trick, so I guess this mode should be buggy. |
This fix is in the vscode stable also, so you do not have to switch to insiders. |
Steps to Reproduce:
It is the same issue as #7394, #7394 is closed but the issue remains, so I have to re-report by open a new same one.
I find something may can help, it is:
<textarea data-mprt="6" class="inputarea" wrap="off" autocorrect="off" autocapitalize="off" autocomplete="off" spellcheck="false" aria-label="现在无法访问编辑器。按 Alt+F1 显示选项。" role="textbox" aria-multiline="true" aria-haspopup="false" aria-autocomplete="both" style="font-size: 1px; line-height: 19px; top: 0px; left: 68px; width: 1px; height: 1px;"></textarea>
.font-size: 1px;
of the textarea element in devtool's Styles panel.The text was updated successfully, but these errors were encountered: