wieslawsoltes / PanAndZoom

Pan and zoom control for Avalonia.
http://wieslawsoltes.github.io/PanAndZoom/
MIT License
337 stars 44 forks source link

ZoomBorder scrolls when reaching Max/Min Zoom #76

Closed ArchLeaders closed 7 months ago

ArchLeaders commented 8 months ago

When setting the MaxZoom and MinZoom properties, zooming in to the max causes the viewer to start scrolling left and down with the mouse wheel.

2024-01-2121-03-40-ezgif com-video-to-gif-converter

<ZoomBorder Name="ZoomBorder"
            ClipToBounds="True"
            MaxZoomX="1"
            MaxZoomY="1"
            Stretch="Uniform"
            ZoomSpeed="1.2">
    <Border HorizontalAlignment="Center"
            VerticalAlignment="Center"
            ClipToBounds="True"
            CornerRadius="5">
        <Image Source="/Assets/Maps/Surface.jpg" />
    </Border>
</ZoomBorder>

Not sure if this is a configuration problem on my end or an issue with the library.

I'm using Avalonia 11.0.7 and 11.0.0.2 of this library.

Slazanger commented 5 months ago

I am seeing this behaviour in 11.0.0.3