Mapsui
Mapsui copied to clipboard
Zooming with mousewheel or pinch-gesture doesn't work with Mac Catalyst MAUI
Mapsui Version 5.0.0-beta.7
Mapsui Platform MAUI
Device Mac Catalyst on MacbookPro M1 macOS 14.7.1
Describe the bug Just testing the getting-started: https://mapsui.com/documentation/getting-started-maui.html
public MainPage()
{
InitializeComponent();
var mapControl = new Mapsui.UI.Maui.MapControl();
mapControl.Map?.Layers.Add(Mapsui.Tiling.OpenStreetMap.CreateTileLayer());
Content = mapControl;
}
To Reproduce Steps to reproduce the behavior:
- run the code
- try to zoom with mouse wheel or pinch-gesture
Expected behavior the map should zoom, but nothing happens
This is working fine on Windows, iPhone and iPad. Just not on MacCatalyst.
We do not have any specific code for Mac Catalyst in Mapsui, so this is likely a problem with the components we are using. Could be MAUI or SkiaSharp. Looking at this issue it is apparently not implemented in SkiaSharp https://github.com/mono/SkiaSharp/issues/2449
If you want to investigate this further you could clone SkiaSharp and open one of the project in .\samples\Basic\Maui\ and add a mousewheel event handler there.
Closing this. It would be a feature request for SkiaSharp.