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

visual studio preview mouse postion not correct #342

Closed
liugangnhm opened this issue Jun 14, 2023 · 7 comments · Fixed by #343
Closed

visual studio preview mouse postion not correct #342

liugangnhm opened this issue Jun 14, 2023 · 7 comments · Fixed by #343
Labels

Comments

@liugangnhm
Copy link

liugangnhm commented Jun 14, 2023

Describe the bug
visual studio preview mouse postion not correct

To Reproduce
any new avalonia project with 11.rc.1.1

Screenshots
avalonia vs preview mouse position

Desktop (please complete the following information):

  • OS: Microsoft Windows 10 专业版 10.0.19044
  • visual studio version: Microsoft Visual Studio Community 2022 (64 位) - 17.6.2
  • vs plugin version: 0.10.18.3
  • Version 11.rc.1
@liugangnhm liugangnhm added the bug label Jun 14, 2023
@timunie
Copy link

timunie commented Jun 14, 2023

can you try latest nightly? I think there were some PR to fix it recently, see AvaloniaUI/Avalonia#11749 and AvaloniaUI/Avalonia#11755

Instructions: https://github.com/AvaloniaUI/Avalonia/wiki/Using-nightly-build-feed

@liugangnhm
Copy link
Author

thanks for your quick relay, i am trying nightly build, will give feed back later

@liugangnhm
Copy link
Author

  <ItemGroup>
    <PackageReference Include="Avalonia" Version="11.0.999-cibuild0036521-beta" />
    <PackageReference Include="Avalonia.Desktop" Version="11.0.999-cibuild0036521-beta" />
    <PackageReference Include="Avalonia.Themes.Fluent" Version="11.0.999-cibuild0036521-beta" />
    <PackageReference Include="Avalonia.Fonts.Inter" Version="11.0.999-cibuild0036521-beta" />
    <!--Condition below is needed to remove Avalonia.Diagnostics package from build output in Release configuration.-->
    <PackageReference Condition="'$(Configuration)' == 'Debug'" Include="Avalonia.Diagnostics" Version="11.0.999-cibuild0036521-beta" />
    <PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.0" />
  </ItemGroup>

tried the latest nightly build, no changes

@liugangnhm
Copy link
Author

my screen is 3840*2160

@liugangnhm
Copy link
Author

my screen is 3840*2160

after i change the dpi scale from 150% to 100%, the issue is gone

@MrJul
Copy link
Member

MrJul commented Jun 14, 2023

  • Reproduced with screen scaling ≠100% and AvaloniaVS, latest Avalonia nightly
  • NOT reproduced with AvaloniaRider, latest Avalonia nightly
  • Reproduced with Avalonia 0.10.21, AvaloniaVS and scaling ≠ 100% so it's unrelated to the recent fixes for Avalonia 11

I think AvaloniaVS mishandles screen scaling + zoom (zoom only is ok). I'll have a look at it since I'm deep in the previewer internals lately :)

@timunie
Copy link

timunie commented Jun 14, 2023

So we probably should move this issue over to the plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants