Mapsui icon indicating copy to clipboard operation
Mapsui copied to clipboard

Zooming with mousewheel or pinch-gesture doesn't work with Mac Catalyst MAUI

Open TomQv opened this issue 9 months ago • 2 comments

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:

  1. run the code
  2. 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.

TomQv avatar Feb 19 '25 10:02 TomQv

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

pauldendulk avatar Feb 20 '25 08:02 pauldendulk

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.

pauldendulk avatar Feb 21 '25 11:02 pauldendulk

Closing this. It would be a feature request for SkiaSharp.

pauldendulk avatar Sep 27 '25 05:09 pauldendulk