MCPcopy Create free account
hub / github.com/jerryuhoo/Fire / mouseMove

Method mouseMove

Source/GUI/ModulatableSlider.cpp:74–96  ·  view source on GitHub ↗

New/updated mouse handlers

Source from the content-addressed store, hash-verified

72
73// New/updated mouse handlers
74void 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
98void ModulatableSlider::mouseEnter(const juce::MouseEvent& event)
99{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected