You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The pan and zoom doesnt work for Mac, I fixed zoom by creating the PlatformTouchEffect for Mac (used the same file as that of iOS).
To make zoom work,
I added the following to the PlotController.cs,
#if MACCATALYST
this.BindMouseWheel(OxyPlot.PlotCommands.ZoomWheel);
this.BindMouseWheel(OxyModifierKeys.Control, OxyPlot.PlotCommands.ZoomWheelFine);
#endif
added the Pan gesture recognizer, and raised the onTouchAction
CGPoint delta = panGestureRecognizer.TranslationInView(view);
CGPoint point = panGestureRecognizer.LocationInView(view);
var touchArgs = new TouchActionEventArgs(1,
TouchActionType.MouseWheel,
new Point[] { new(point.X, point.Y) },
true)
{
ModifierKeys = OxyModifierKeys.None
};
touchArgs.MouseWheelDelta = (int)((1000 + delta.Y) / 1000);
onTouchAction(Element, touchArgs);
However, it didn't work. Is there something I am missing?
The text was updated successfully, but these errors were encountered:
Carry-over from iniceice88/OxyPlot.Maui.Skia#4 (reported by @KunalKshatriya):
The pan and zoom doesnt work for Mac, I fixed zoom by creating the PlatformTouchEffect for Mac (used the same file as that of iOS).
To make zoom work,
I added the following to the PlotController.cs,
#if MACCATALYST
this.BindMouseWheel(OxyPlot.PlotCommands.ZoomWheel);
this.BindMouseWheel(OxyModifierKeys.Control, OxyPlot.PlotCommands.ZoomWheelFine);
#endif
added the Pan gesture recognizer, and raised the onTouchAction
However, it didn't work. Is there something I am missing?
The text was updated successfully, but these errors were encountered: