Pre loader

Tag: SCIPinchZoomModifier

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 votes
3k views

Hello,

I was overriding the performZoom(at mousePoint: CGPoint, xValue: Double, yValue: Double) method of SCIPinchZoomModifier but it is not accessible anymore.

My Code:

import Foundation
import SciChart

public class FixedToCenterPinchZoomModifier : SCIPinchZoomModifier {

override func performZoom(at mousePoint: CGPoint, xValue: Double, yValue: Double) {
    let middle = CGPoint(x: parentSurface?.frame.midX ?? 0,
                         y: parentSurface?.frame.midY ?? 0)
    super.performZoom(at: middle, xValue: xValue, yValue: yValue)
}

}

I get the error: Method does not override any method from its superclass

Is there a way to access the protected method?

Showing 1 result

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies