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

Answered
0
0

Hello
I have animated line renderable series – when new point added, whole x-axes moves to the right a little.

Everything is smooth until pinch zoom appears.
I think it’s conflict with animated viewport move and zooming.

Is there a way to know, when zooming appears?

E.g. if i know, when zoom started and finished – i can solve this.
Thanks

Version
2.2.2.2433
  • You must to post comments
Best Answer
1
0

Hi Vadim,

Unfortunately we don’t provide listener API for PinchZoomModifier but you can execute some code before and after zooming by creating custom modifier which extends PinchZoomModifier and overriding next methods :

 class CustomPinchZoomModifier extends PinchZoomModifier {
    @Override
    public boolean onScaleBegin(ScaleGestureDetector detector) {
        // here you can add code which should be executed before processsing of pinch gesture
        return super.onScaleBegin(detector);
    }

    @Override
    public void onScaleEnd(ScaleGestureDetector detector) {
        super.onScaleEnd(detector);

        // here you can add some code which should be executed after pinch gesture is finished
    }
}

Is this suitable for your needs?

Hope this will help you!

Best regards,
Yura

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.