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

[BUG] SKXamlCanvas PointerwheelChanged not respecting DPI? #2807

Open
1 task done
TopperDEL opened this issue Mar 27, 2024 · 0 comments
Open
1 task done

[BUG] SKXamlCanvas PointerwheelChanged not respecting DPI? #2807

TopperDEL opened this issue Mar 27, 2024 · 0 comments
Labels

Comments

@TopperDEL
Copy link

Description

I'm not quite exactly sure what happens here. But I have an Uno-App that has a SKXamlCanvas filling nearly the whole screen. On my desktop, it works as expected. But running the app on a Surface device (with presumably different screen-size/DPI/whatever) the PointerWheelChanged-Event only gets invoked when the mouse pointer is in the top left corner of the Canvas. It feels like it is only nearly respecting half of the screen size.

The content rendered uses the whole screen, though, and other events like PointerDown get invoked correctly above every part of the canvas.

I'm using SkiaSharp.View.WinUI and SkiaSharp.Views.Uno.WinUI both in version 2.88.7.

Code

<sk:SKXamlCanvas
    x:Name="swapChain"
    PaintSurface="OnPaintSwapChain"
    PointerPressed="OnSurfacePointerPressed"
    PointerMoved="OnSurfacePointerMoved"
    PointerReleased="OnSurfacePointerReleased"
    PointerWheelChanged="OnSurfacePointerWheelChanged"
    PointerExited="OnPointerExited"
    DoubleTapped="OnSurfaceDoubleTapped"
    RightTapped="OnRightTapped"
    Background="Transparent"/>

Expected Behavior

The PointerWheelChanged-event gets raised in every location.

Actual Behavior

No response

Version of SkiaSharp

Other (Please indicate in the description)

Last Known Good Version of SkiaSharp

Other (Please indicate in the description)

IDE / Editor

Visual Studio (Windows)

Platform / Operating System

Windows

Platform / Operating System Version

No response

Devices

No response

Relevant Screenshots

No response

Relevant Log Output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant