SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and iOS Chart & Android Chart Components

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
    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.

SciChart WPF v6 BETA released! Note pricing/licensing changes are coming. Contact us to beat the rise!Read more
+