Pre loader

Scroll 2 stacked charts with fingers not on same chart.

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

Hello everyone.

I have 2 stacked horizontally charts with

 .withMotionEventsGroup("ModifiersSharedEventsGroup").withReceiveHandledEvents(true)

so they drag and zoom in same way.

But when i put one finger on first chart, second finger on second chart – then total apocalypse happens.
Is it possible to zoom it, like two fingers on one chart or disable zoom in that situation, so charts will have no conflict?

(I think both chart just dragging in different directions in my case, but because they are linked – everything just shakes)

Edit:

Collections.addAll(mSciChartMainSurface.getChartModifiers(), sciChartBuilder.newModifierGroup()
                        .withPinchZoomModifier().withXyDirection(Direction2D.XDirection).withScaleFactor(SCALE_FACTOR_X_AXIS).build()
                        .withZoomPanModifier().withReceiveHandledEvents(true).withXyDirection(Direction2D.XDirection).build()
                        .withMotionEventsGroup(MODIFIER_SHARED_EVENTS_GROUP_NAME).withReceiveHandledEvents(true)
                        .withXAxisDragModifier().withReceiveHandledEvents(true).withDragMode(AxisDragModifierBase.AxisDragMode.Pan).build()
                        .build());



Collections.addAll(mSciChartBotIndicatorSurface.getChartModifiers(), sciChartBuilder.newModifierGroup()
                    .withMotionEventsGroup(MODIFIER_SHARED_EVENTS_GROUP_NAME).withReceiveHandledEvents(true)
                    .withPinchZoomModifier().withXyDirection(Direction2D.XDirection).withScaleFactor(SCALE_FACTOR_X_AXIS).build()
                    .withZoomPanModifier().withReceiveHandledEvents(true).withXyDirection(Direction2D.XDirection).build()
                    .withXAxisDragModifier().withReceiveHandledEvents(true).withDragMode(AxisDragModifierBase.AxisDragMode.Pan).build()
                    .build());
Version
2.2.2.2424
  • Yura Khariton
    May I ask what modifiers do you use in both charts? Can you provide code with configuration of charts? Also do you use ZoomPanModifier with ReceiveHandledEvents = true in both charts?
  • Kirey Vadim
    Added configurations
  • You must to post comments
0
0

Hi Vadim,

Try to remove all this ReceiveHandledEvents = true from your pinch, zoom and pan modifiers and leave only one which you set for ModifierGroup because for now because you set ReceiveHandledEvents = true for all modifiers this results that each touch handled by both charts and as result you god these ‘jumps’

Best regards.

  • Kirey Vadim
    Not helped. I can share project on mail.
  • Yura Khariton
    If you don’t want to share a project on forums then can you create a support ticket ( http://support.scichart.com/ ) and attach project to the ticket?
  • Andrew Burnett-Thompson
    I would suggest Kirey not putting your email on a public forum unless you want spam bots to be sending you messages! You could always share a project using Dropbox or similar …
  • Kirey Vadim
    Yura, is it possible way for trial user?
  • Yura Khariton
    Yeah, in case when customer doesn’t want to share his code on forums we allow to create support ticket which will be visible only to SciChart team and customer who created it.
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