Pre loader

ZoomPanModifierand RubberBandXyZoomModifier

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

Hi,
I’m using both modifier for our SciChartSurface’s. RubberBandXyZoomModifierexecutes on ExecuteOn=”MouseLeftButton” and ZoomPanModifierand executes on ExecuteOn=”MouseRightButton” . For touch I want the opposite behavior. Is that possible?

Version
6.2.1.13350
  • You must to post comments
0
0

Hi Daniel

I guess you may have to hook into the preview touch events and switch the IsEnabled and ExecuteOn behaviours of the RubberBandXyZoomModifier / ZoomPanModifier. That or create a custom modifier which inherits one of the above to do it.

There are various methods in ChartModifierBase you can override, including OnModifierMouseDown, OnModifierTouchDown, however you’ll have to test to see which method works best. Maybe custom handling of touch preview events will be better.

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