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());
- Kirey Vadim asked 6 years ago
- last edited 6 years ago
-
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?
-
Added configurations
- You must login to post comments
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.
- Yura Khariton answered 6 years ago
-
Not helped. I can share project on mail.
-
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?
-
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 …
-
Yura, is it possible way for trial user?
-
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.
- 4 more comments
- You must login to post comments
Please login first to submit.