New/updated mouse handlers
| 72 | |
| 73 | // New/updated mouse handlers |
| 74 | void ModulatableSlider::mouseMove(const juce::MouseEvent& event) |
| 75 | { |
| 76 | bool isOverHandleNow = isModulated && getModulationHandleBounds().contains(event.getPosition().toFloat()); |
| 77 | |
| 78 | if (isOverHandleNow != isModHandleMouseOver) |
| 79 | { |
| 80 | isModHandleMouseOver = isOverHandleNow; |
| 81 | if (isModHandleMouseOver) |
| 82 | { |
| 83 | if (onHoverStart) |
| 84 | onHoverStart(this); |
| 85 | } |
| 86 | else |
| 87 | { |
| 88 | if (onHoverEnd) |
| 89 | onHoverEnd(this); |
| 90 | } |
| 91 | repaint(); |
| 92 | } |
| 93 | |
| 94 | // We still call the base class for its own internal state management |
| 95 | juce::Slider::mouseMove(event); |
| 96 | } |
| 97 | |
| 98 | void ModulatableSlider::mouseEnter(const juce::MouseEvent& event) |
| 99 | { |
nothing calls this directly
no outgoing calls
no test coverage detected