| 41 | } |
| 42 | |
| 43 | void Dragger::mouseDown(const juce::MouseEvent& e) { |
| 44 | current_pos_ = button_pos_; |
| 45 | global_pos_ = e.position + button_pos_; |
| 46 | button_.setToggleState(true, juce::NotificationType::sendNotificationSync); |
| 47 | const BailOutChecker checker(this); |
| 48 | listeners_.callChecked(checker, [&](Dragger::Listener& l) { l.dragStarted(this); }); |
| 49 | } |
| 50 | |
| 51 | void Dragger::mouseUp(const juce::MouseEvent& e) { |
| 52 | juce::ignoreUnused(e); |
nothing calls this directly
no test coverage detected