Pre loader

MouseWheelZoomModifier stops working

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

I have a MouseWheelZoomModifier. It works fine when I first run my app but if I click a control outside of the chart (in this case a control on a Telerik RibbonBar) the mouse wheel zoom stops working. All other legends continue to work ok (RubberBand, ZoomPan, ZoomExtents).

Any idea what the problem could be? This is my code:

var zm = MouseWheelZoomModifier();
zm.IsEnabled = true;
zm.ActionType = ActionType.Zoom;

  • You must to post comments
0
0

This sounds to me like WPF Tunnelling or Bubbling.

Another control in your application is consuming the MouseWheel event and marking e.Handled = true, so SciChart never receives it.

There is no way around this, only to ensure SciChartSurface, or your main window, has focus when you use the MouseWheel, or, that other parts of your application do not mark e.Handled = true on events.

Best regards,
Andrew

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies