Skip to content

Controls: Reset() does not update the UserInputProcessor #4404

@Or8e4m4n

Description

@Or8e4m4n

It seems that is no longer possible to pan or zoom charts with the version 5.0.41, but works fine with the previous version (at least with Scatter and Bar charts.

   at ScottPlot.Plot.GetPanel(Pixel pixel, Boolean axesOnly)
   at ScottPlot.Plot.GetAxis(Pixel pixel)
   at ScottPlot.Interactivity.MouseAxisManipulation.MouseWheelZoom(Plot plot, Double fracX, Double fracY, Pixel pixel, Boolean ChangeOpposingAxesTogether)
   at ScottPlot.Interactivity.UserActionResponses.MouseWheelZoom.Execute(Plot plot, IUserAction userInput, KeyboardState keys)
   at ScottPlot.Interactivity.UserInputProcessor.ExecuteUserInputResponses(IUserAction userAction)
   at ScottPlot.Interactivity.UserInputProcessor.Process(IUserAction userAction)
   at ScottPlot.WPF.WpfPlotExtensions.ProcessMouseWheel(UserInputProcessor processor, FrameworkElement fe, MouseWheelEventArgs e)
   at ScottPlot.WPF.WpfPlotBase.SKElement_MouseWheel(Object sender, MouseWheelEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   at System.Windows.Application.RunDispatcher(Object ignore)
   at System.Windows.Application.RunInternal(Window window)
   at Software.Desktop.App.Main()

Can you please investigate?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions