| 79 | } |
| 80 | |
| 81 | bool tooltip::ToolTipController::OnPressStart(event::Event &event) { |
| 82 | chart_->GetLogTracer()->trace("%s", "#ToolTipController onPressStart"); |
| 83 | if (isTooltips()) { |
| 84 | if (configs_[0].contains("onPressStart") && configs_[0]["onPressStart"].is_string()) { |
| 85 | chart_->InvokeFunction(configs_[0]["onPressStart"]); |
| 86 | } |
| 87 | } else { |
| 88 | if (config_.contains("onPressStart") && config_["onPressStart"].is_string()) { |
| 89 | chart_->InvokeFunction(config_["onPressStart"]); |
| 90 | } |
| 91 | } |
| 92 | return false; |
| 93 | } |
| 94 | |
| 95 | bool tooltip::ToolTipController::OnPress(event::Event &event) { |
| 96 | if (isTooltips()) { |
nothing calls this directly
no test coverage detected