Pre loader

How to keep tooltip showing when release finger

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

Hi all,

When we enable the rollover modifier and drag the chart, we can see the tooltip.
However, when I release the finger, the tooltip also disappears.
Is there a way to keep the tooltip showing when releasing the finger?
The problem we want to solve is user will use their finger to mark a critical point, then we will take a screenshot of the chart to generate a report.
Not sure if there is any good way to make the tooltip keeps showing to achieve this requirement?
Thanks

Version
4.4
  • You must to post comments
0
0

Old question but I figured this out recently.

You need to implement a subclass of SCIRolloverModifier and override the onEvent(args:) function, then ignore any event where the gestureRecognizer state is .ended.

class MyRolloverModifier: SCIRolloverModifier {
override func onEvent(_ args: SCIGestureModifierEventArgs) {
if args.gestureRecognizer?.state != .ended {
super.onEvent(args)
}
}
}

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.